ChatMessageContent

public struct ChatMessageContent : Codable

Content of a message.

Properties

  • 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?

Initializers

  • 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.

Codable

  • Initialize a ChatMessageContent structure from decoder

    Declaration

    Swift

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

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws