ChatParticipant

public struct ChatParticipant : Codable

A participant of the chat thread.

Properties

  • id

    The identifier of the participant.

    Declaration

    Swift

    public let id: CommunicationIdentifier
  • Display name for the participant.

    Declaration

    Swift

    public let displayName: String?
  • Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

    Declaration

    Swift

    public let shareHistoryTime: Iso8601Date?

Initializers

  • Initialize a ChatParticipant structure.

    Declaration

    Swift

    public init(
        id: CommunicationIdentifier,
        displayName: String? = nil,
        shareHistoryTime: Iso8601Date? = nil
    )

    Parameters

    id

    The identifier of the participant.

    displayName

    Display name for the participant.

    shareHistoryTime

    Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

Codable

  • Initialize a ChatParticipant structure from decoder

    Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Encode a ChatParticipant structure

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws