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
ChatMessageContentstructure.Declaration
Swift
public init( message: String? = nil, topic: String? = nil, participants: [ChatParticipant]? = nil, initiator: CommunicationIdentifier? = nil )Parameters
messageMessage content for messages of types text or html.
topicMessage content for messages of type topicUpdated.
participantsMessage content for messages of types participantAdded or participantRemoved.
initiatorThe initiator of the message.
-
Initialize a
ChatMessageContentstructure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws -
Encode a
ChatMessageContentstructureDeclaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
ChatMessageContent Structure Reference