UnknownCommand

class UnknownCommand : ActionBehavior


Represents a command whose trait is not registered with the SDK.

When an automation is read from the backend, the parameters of an unknown command are decoded into params, keyed by UnknownField. The original parameters are also retained, so that saving the automation writes them back unchanged.

Summary

Public constructors

UnknownCommand(commandId: String)

Creates an UnknownCommand instance without parameters.

UnknownCommand(commandId: String, params: Map<Field, Any?>)

Creates an UnknownCommand instance with the given parameters.

Public properties

String

The unique identifier for the command.

Map<Field, Any?>

The parameters for the command.

Public constructors

UnknownCommand

UnknownCommand(commandId: String)

Creates an UnknownCommand instance without parameters.

UnknownCommand

UnknownCommand(commandId: String, params: Map<Field, Any?>)

Creates an UnknownCommand instance with the given parameters.

Public properties

commandId

val commandId: String

The unique identifier for the command.

params

val params: Map<Field, Any?>

The parameters for the command.