ToggleOperation

OperationBuilder. ToggleOperation

Toggles the state of an item

Extends

Methods

toItem()

Source:

and()

Source:

doToggle() → {OperationBuilder.SendCommandOrUpdateOperation}

Source:

Toggle the state of an item

Returns:

this

Type
OperationBuilder.SendCommandOrUpdateOperation

inGroup(group) → {OperationBuilder}

Source:
Overrides:

Specify the rule group for this rule

Parameters:
Name Type Description
group string

the group this rule belongs to.

Returns:

this

Type
OperationBuilder

build(nameopt, descriptionopt, tagsopt, idopt)

Source:
Overrides:

Build this rule

Parameters:
Name Type Attributes Description
name string <optional>

of the rule

description string <optional>

of the rule

tags Array.<String> <optional>

of the rule

id string <optional>

of the rule