ChatParticipant
public struct ChatParticipant : Codable
A participant of the chat thread.
-
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?
-
Initialize a
ChatParticipantstructure.Declaration
Swift
public init( id: CommunicationIdentifier, displayName: String? = nil, shareHistoryTime: Iso8601Date? = nil )Parameters
idThe identifier of the participant.
displayNameDisplay name for the participant.
shareHistoryTimeTime from which the chat history is shared with the participant. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ.
-
Initialize a
ChatParticipantstructure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws -
Encode a
ChatParticipantstructureDeclaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
ChatParticipant Structure Reference