Command

class Command : ActionBehavior


A trait command used in an automation Action.

Summary

Public constructors

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

Create a Command instance.

Public properties

String

The unique identifier for the command.

Map<Field, Any?>

The parameters for the command.

TraitFactory<Trait>

The Trait associated with the command.

Public constructors

Command

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

Create a Command instance.

Public properties

command

val command: String

The unique identifier for the command.

params

val params: Map<Field, Any?>

The parameters for the command.

trait

val trait: TraitFactory<Trait>

The Trait associated with the command.