MessageData
public protocol MessageData
A standard protocol representing a message. Use this protocol to create your own message object to be used by the SDK.
-
The unique identifier for the message.
Declaration
Swift
var id: String { get }
-
The sender of the message.
Declaration
Swift
var sender: SenderInfo { get }
-
The date the message was sent.
Declaration
Swift
var sentDate: Date { get }
-
The type of message and its underlying data.
Declaration
Swift
var type: MessageType { get }
-
List of postback actions for this message
Declaration
Swift
var buttons: [PostbackData]? { get }
-
Return false if there are more pending messages coming.
Declaration
Swift
var isLastMessage: Bool { get }
-
delay
Default implementationNumber of seconds for which next message shall be delayed for display
Default Implementation
Number of seconds for which next message shall be delayed for display (default: none)
Declaration
Swift
var delay: TimeInterval? { get }