Command
public struct Command
Class represents Command
-
ID of the Command.
Declaration
Swift
public let commandID: String?
-
ID of the Command Target.
Declaration
Swift
public let targetID: TypedID
-
ID of the issuer of the Command.
Declaration
Swift
public let issuerID: TypedID
-
Actions to be executed.
Declaration
Swift
public let aliasActions: [AliasAction]
-
Results of the action.
Declaration
Swift
public let aliasActionResults: [AliasActionResult]
-
State of the Command.
Declaration
Swift
public let commandState: CommandState?
-
ID of the trigger which fired this command.
Declaration
Swift
public let firedByTriggerID: String?
-
Creation time of the Command.
Declaration
Swift
public let created: Date?
-
Modification time of the Command.
Declaration
Swift
public let modified: Date?
-
Title of the Command
Declaration
Swift
public let title: String?
-
Description of the Command
Declaration
Swift
public let commandDescription: String?
-
Metadata of the Command
Declaration
Swift
public let metadata: [String : Any]?
-
init(_:targetID:issuerID:aliasActions:aliasActionResults:commandState:firedByTriggerID:created:modified:title:commandDescription:metadata:)
Initialize
Command
.Developers rarely use this initializer. If you want to recreate same instance from stored data or transmitted data, you can use this method.
Declaration
Swift
public init(_ commandID: String?, targetID: TypedID, issuerID: TypedID, aliasActions: [AliasAction], aliasActionResults: [AliasActionResult] = [], commandState: CommandState? = nil, firedByTriggerID: String? = nil, created: Date? = nil, modified: Date? = nil, title: String? = nil, commandDescription: String? = nil, metadata: [String : Any]? = nil)
-
Get actions associated with an alias.
Declaration
Swift
public func getAliasActions(_ alias: String) -> [AliasAction]
-
Get action results associated with an alias and action name.
Declaration
Swift
public func getActionResult( _ alias: String, actionName: String) -> [ActionResult]