SendChatMessageRequest

public struct SendChatMessageRequest : Codable

Details of the message to send.

Properties

  • Chat message content.

    Declaration

    Swift

    public let content: String
  • The display name of the chat message sender. This property is used to populate sender name for push notifications.

    Declaration

    Swift

    public let senderDisplayName: String?
  • The chat message type.

    Declaration

    Swift

    public let type: ChatMessageType?
  • Message metadata.

    Declaration

    Swift

    public let metadata: [String : String?]?

Initializers

  • Initialize a SendChatMessageRequest structure.

    Declaration

    Swift

    public init(
        content: String, senderDisplayName: String? = nil, type: ChatMessageType? = nil,
        metadata: [String: String?]? = nil
    )

    Parameters

    content

    Chat message content.

    senderDisplayName

    The display name of the chat message sender. This property is used to populate sender name for push notifications.

    type

    The chat message type.

    metadata

    Message metadata.

Codable

  • Initialize a SendChatMessageRequest structure from decoder

    Declaration

    Swift

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

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws