BotsAttachmentMessage
public class BotsAttachmentMessage : BotsMessage
The class that represents a skill’s attachment message.
-
The list of all global actions in the skill’s attachment message.
Declaration
Swift
public private(set) var globalActions: [BotsAction]? { get }
-
The list of all actions in the skill’s attachment message.
Declaration
Swift
public private(set) var actions: [BotsAction]? { get }
-
The BotsAttachment object for the attachment file.
Declaration
Swift
public private(set) var attachfile: BotsAttachment? { get }
-
The header text associated with the attachment message.
Declaration
Swift
public private(set) var headerText: String? { get }
-
The footer text associated with the attachment message.
Declaration
Swift
public private(set) var footerText: String? { get }
-
The date and timestamp of skill’s attachment message.
Declaration
Swift
public let date: Date
-
True if the message is read, else false.
Declaration
Swift
public var isRead: Bool
-
The payload json object for the attachment message.
Declaration
Swift
public private(set) var payload: [String : Any]? { get }
-
The source of the attachment 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 private(set) var channelExtensions: [String : AnyObject]? { get }
-
The constructor for initializing a BotsAttachmentMessage object.
Declaration
Swift
public init(payload: [String : AnyObject], source: String = "BOT")
Parameters
payload
The message payload as a json object.
-
The constructor for initializing a BotsAttachmentMessage object.
Declaration
Swift
public init(attachfile: BotsAttachment)
Parameters
attachfile
The BotsAttachment object for the attachment file.