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
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
.
-
Initialize a
ChatParticipant
structure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws
-
Encode a
ChatParticipant
structureDeclaration
Swift
public func encode(to encoder: Encoder) throws