Trigger

public class Trigger: NSObject, NSCoding

Class represents Trigger

  • Undocumented

    Declaration

    Swift

    public class Trigger: NSObject, NSCoding
  • ID of the Trigger

    Declaration

    Swift

    public let triggerID: String
  • ID of the Trigger target

    Declaration

    Swift

    public let targetID: TypedID
  • Flag indicate whether the Trigger is enabled

    Declaration

    Swift

    public let enabled: Bool
  • Predicate of the Trigger

    Declaration

    Swift

    public let predicate: Predicate
  • Command to be fired

    Declaration

    Swift

    public let command: Command?
  • ServerCode to be fired

    Declaration

    Swift

    public let serverCode: ServerCode?
  • Title of the Trigger

    Declaration

    Swift

    public let title: String?
  • Description of the Trigger

    Declaration

    Swift

    public let triggerDescription: String?
  • Metadata of the Trigger

    Declaration

    Swift

    public let metadata: Dictionary<String, AnyObject>?
  • Init Trigger with Command

    Parameter

    Parameter triggerID: ID of trigger

    Parameter

    Parameter targetID: ID of trigger target

    Parameter

    Parameter enabled: True to enable trigger

    Parameter

    Parameter predicate: Predicate instance

    Parameter

    Parameter command: Command instance

    Declaration

    Swift

    public init(triggerID: String, targetID: TypedID, enabled: Bool, predicate: Predicate, command: Command, title: String? = nil, triggerDescription: String? = nil, metadata: Dictionary<String, AnyObject>? = nil)

    Parameters

    triggerID

    ID of trigger

    targetID

    ID of trigger target

    enabled

    True to enable trigger

    predicate

    Predicate instance

    command

    Command instance

  • Init Trigger with Server code

    Parameter

    Parameter triggerID: ID of trigger

    Parameter

    Parameter targetID: ID of trigger target

    Parameter

    Parameter enabled: True to enable trigger

    Parameter

    Parameter predicate: Predicate instance

    Parameter

    Parameter serverCode: ServerCode instance

    Declaration

    Swift

    public init(triggerID: String, targetID: TypedID, enabled: Bool, predicate: Predicate, serverCode: ServerCode, title: String? = nil, triggerDescription: String? = nil, metadata: Dictionary<String, AnyObject>? = nil)
  • Undocumented

    Declaration

    Swift

    public class Trigger: NSObject, NSCoding