BotsCard

public class BotsCard

The class that represents a card.

  • url

    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

    title

    The title of the card.

    description

    The description of the card.

    imageUrl

    The url of the image on the card.

    actions

    The list of all actions associated with the card.