ChatMessageContent
public struct ChatMessageContent : Codable
Content of a message.
-
Chat message content for messages of types text or html.
Declaration
Swift
public let message: String?
-
Chat message content for messages of type topicUpdated.
Declaration
Swift
public let topic: String?
-
Chat message content for messages of types participantAdded or participantRemoved.
Declaration
Swift
public let participants: [ChatParticipant]?
-
The initiator of the message.
Declaration
Swift
public let initiator: CommunicationIdentifier?
-
Initialize a
ChatMessageContent
structure.Declaration
Swift
public init( message: String? = nil, topic: String? = nil, participants: [ChatParticipant]? = nil, initiator: CommunicationIdentifier? = nil )
Parameters
message
Message content for messages of types text or html.
topic
Message content for messages of type topicUpdated.
participants
Message content for messages of types participantAdded or participantRemoved.
initiator
The initiator of the message.
-
Initialize a
ChatMessageContent
structure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws
-
Encode a
ChatMessageContent
structureDeclaration
Swift
public func encode(to encoder: Encoder) throws