SendChatMessageRequest
public struct SendChatMessageRequest : Codable
Details of the message to send.
-
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?]?
-
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.
-
Initialize a
SendChatMessageRequest
structure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws
-
Encode a
SendChatMessageRequest
structureDeclaration
Swift
public func encode(to encoder: Encoder) throws