MessageData
class MessageData
Base class for message data used when sending messages in a conversation.
-
The fallback text to display when the message type is not supported by the client.
Declaration
Swift
let fallbackText: String -
The locale of the message content. If
nil, the server default locale is used.Declaration
Swift
var locale: String? -
Whether the message should be internal (only visible to agents). Defaults to
nil(not internal).Declaration
Swift
var internalMessage: Bool -
Encodes this value into the given encoder.
If the value fails to encode anything,
encoderwill encode an empty keyed container in its place.This function throws an error if any values are invalid for the given encoder’s format.
Declaration
Swift
func encode(to encoder: any Encoder) throws