Command

class Command : ActionBehavior


A trait command used in an automation Action.

Summary

Public constructors

Command(
    trait: TraitFactory<Trait>,
    command: String,
    params: Map<FieldAny?>
)

Create a Command instance.

Public properties

String

The unique identifier for the command.

Map<FieldAny?>

The parameters for the command.

TraitFactory<Trait>

The Trait associated with the command.

Public constructors

Command

Command(
    trait: TraitFactory<Trait>,
    command: String,
    params: Map<FieldAny?> = emptyMap()
)

Create a Command instance.

Public properties

command

val commandString

The unique identifier for the command.

params

val paramsMap<FieldAny?>

The parameters for the command.

trait

val traitTraitFactory<Trait>

The Trait associated with the command.