BotsLocationMessage

public class BotsLocationMessage : BotsMessage

The class that represents a skill’s location message.

  • The list of all global actions in the skill’s location message.

    Declaration

    Swift

    public private(set) var globalActions: [BotsAction]? { get }
  • The list of all actions in the skill’s location message.

    Declaration

    Swift

    public private(set) var actions: [BotsAction]? { get }
  • The BotsLocationt object for the location

    Declaration

    Swift

    public private(set) var botsLocation: BotsLocation! { get }
  • The header text associated with the location message.

    Declaration

    Swift

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

    Declaration

    Swift

    public private(set) var footerText: String? { get }
  • The date and timestamp of skill’s location 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 location message.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Parameters

    payload

    The message payload as a json object.