BotsCard
public class BotsCard
The class that represents a card.
-
The url associated with the card.
Declaration
Swift
public private(set) var url: String? { get } -
The title of the card.
Declaration
Swift
public private(set) var title: String? { get } -
The description of the card.
Declaration
Swift
public private(set) var description: String? { get } -
The url of the image on the card.
Declaration
Swift
public private(set) var imageUrl: String? { get } -
The list of all actions associated with the card.
Declaration
Swift
public internal(set) var actions: [BotsAction]? { get } -
The date and timestamp of bot text message.
Declaration
Swift
public let date: Date -
True if the message is read, else false.
Declaration
Swift
public var isRead: Bool -
The channel custom properties associated with the card.
Declaration
Swift
public private(set) var channelExtensions: [String : AnyObject]? { get } -
The constructor for initializing a BotsCard object.
Declaration
Swift
public init(title: String, description: String, imageUrl: String, actions: [BotsAction], url: String? = nil)Parameters
titleThe title of the card.
descriptionThe description of the card.
imageUrlThe url of the image on the card.
actionsThe list of all actions associated with the card.
BotsCard Class Reference