BotsRawMessage
public class BotsRawMessage : BotsMessage
The class that represents a skill’s raw message.
-
Declaration
Swift
public var headerText: String?
-
Declaration
Swift
public var footerText: String?
-
The list of all actions in the skill’s message.
Declaration
Swift
public private(set) var actions: [BotsAction]? { get }
-
The list of all global actions in the skill’s raw message.
Declaration
Swift
public private(set) var globalActions: [BotsAction]? { get }
-
The type of message “BOT”, “USER”, “USERATTACHMENT”.
Declaration
Swift
public private(set) var messageType: String { get }
-
The raw message payload.
Declaration
Swift
public private(set) var payload: [String : Any]? { get }
-
The date and timestamp of skill’s raw message.
Declaration
Swift
public let date: Date
-
True if the message is read, else false.
Declaration
Swift
public var isRead: Bool
-
The source of the raw message. Either MessageType.bot or MessageType.agent. The default value is MessageType.bot
Declaration
Swift
public private(set) var messageSource: MessageType { get }
-
Declaration
Swift
public internal(set) var channelExtensions: [String : AnyObject]? { get }
-
The constructor for initializing a BotsRawMessage object.
Declaration
Swift
public init(payLoad: [String : AnyObject], source: String = "BOT")
Parameters
payload
The message payload as a json object..
messageType
The type of message “BOT”, “USER”, “USERATTACHMENT”.