ConversationParticipant

struct ConversationParticipant

An object that represents a participant within a Conversation

  • Returns a Boolean value indicating whether two values are equal.

    Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

    Declaration

    Swift

    static func == (lhs: ConversationParticipant, rhs: ConversationParticipant) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

  • 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
  • The type of a participant of a conversation

    See more

    Declaration

    Swift

    enum EConversationParticipationType
  • The display name of the person.

    Declaration

    Swift

    var displayName: String
  • The initials derived from the person’s name

    Declaration

    Swift

    let nameInitials: String
  • The URL of the person’s avatar image, if available.

    Declaration

    Swift

    let avatarUrl: String?
  • The background color used for the person’s avatar, if available.

    Declaration

    Swift

    let avatarBackgroundColor: UIColor?
  • The conversation participation type of the person (for example, “OWNER” or “PARTICIPANT”), if available.

    Declaration

    Swift

    var type: ConversationParticipant.EConversationParticipationType?
  • The unique username of the person, if available.

    Declaration

    Swift

    var username: String?
  • The authentication role of the person (for example, “agent” or “visitor”), if available.

    Declaration

    Swift

    var authenticationRole: String?
  • An external source identifier associated with this person, if available.

    Declaration

    Swift

    var sourceId: String?
  • The person’s email address, if available.

    Declaration

    Swift

    var email: String?
  • The person’s phone number, if available.

    Declaration

    Swift

    var phoneNumber: String?
  • The person’s conversation participation type (for example, “owner” or “participant”), if available.

    Declaration

    Swift

    var conversationParticipationType: String?