BotsCardMessage

public class BotsCardMessage : BotsMessage

The class that represents a skill’s card message.

  • The layout of the card message.

    Declaration

    Swift

    public private(set) var layout: CardLayout? { get }
  • The list of all cards in the card message.

    Declaration

    Swift

    public private(set) var cards: [BotsCard]? { get }
  • The list of all actions associated with the card message.

    Declaration

    Swift

    public internal(set) var actions: [BotsAction]? { get }
  • The list of all global actions associated with the card message.

    Declaration

    Swift

    public internal(set) var globalActions: [BotsAction]? { get }
  • The header text associated with card message.

    Declaration

    Swift

    public internal(set) var headerText: String? { get }
  • The footer text associated with card message.

    Declaration

    Swift

    public internal(set) var footerText: String? { get }
  • The date and timestamp of bot card 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 card message.

    Declaration

    Swift

    public private(set) var payload: [String : Any]? { get }
  • The source of the card 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 BotsCardMessage object.

    Declaration

    Swift

    public init(payload: [String : AnyObject], source: String = "BOT")

    Parameters

    payload

    The message payload as a json object.