public static class CapabilityColor.SetColorComponents extends Command<CapabilityColor.CommandId>
Capability.sendResourceCommand(buzz.getcoco.iot.Command<T>, buzz.getcoco.iot.Capability.CommandStatusListener<T>)
to set color components for Resource such as color bulb.Command.State| Modifier and Type | Field and Description |
|---|---|
int[] |
colorComponentIds
The color component IDs.
|
int[] |
colorComponentsValues
The color component values to use.
|
int |
transitionTime
Transition duration in milliseconds from the current level to the
levelPct value.
|
boolean |
useDefaultTransitionTime
A flag that represents if default transition duration from
current level to level pct shall be used.
|
| Constructor and Description |
|---|
SetColorComponents(boolean useDefaultTransitionTime)
Constructor for this class.
|
getCommandId, getTimeout, setCommandId, setTimeout, toJsonObject, toString@SerializedName(value="colorCompIdArr") public int[] colorComponentIds
CapabilityColor.AttributeId.COMP_ID_ARR@SerializedName(value="colorCompValuesArr") public int[] colorComponentsValues
@SerializedName(value="useDefaultTransTimeFlag") public boolean useDefaultTransitionTime
@SerializedName(value="transitionTimeMs") public int transitionTime