ConversationRecipientInfo

struct ConversationRecipientInfo

Interface representing the information about the recipient of a conversation.

  • A string representing the recipient target ID.

    Declaration

    Swift

    let targetId: String
  • A field representing the participation type.

    Declaration

    Swift

    let type: ConversationRecipientInfoType
  • The recipient’s name.

    Declaration

    Swift

    let name: String
  • A string representing the recipient’s online state.

    Declaration

    Swift

    let onlineState: String
  • A string representing the URL of the recipient’s avatar.

    Declaration

    Swift

    let avatarUrl: String
  • A string representing the ID of the recipient’s avatar.

    Declaration

    Swift

    @available(*, deprecated, renamed: "avatarUrl")
    var avatarId: String { get }
  • Creates a new instance by decoding from the given decoder.

    This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

    Declaration

    Swift

    init(from decoder: any Decoder) throws