public static class CapabilityColor.SetHsl extends Command<CapabilityColor.CommandId>
Capability.sendResourceCommand(buzz.getcoco.iot.Command<T>, buzz.getcoco.iot.Capability.CommandStatusListener<T>) to set hsl value for Resource such as color bulb.Command.State| Modifier and Type | Field and Description |
|---|---|
int |
hue
The Hue to be set in the HSL color scale.
|
int |
luminance
The Luminance to be set in the HSL color scale.
|
int |
saturation
The Saturation to be set in the HSL color scale.
|
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 |
|---|
SetHsl(boolean useDefaultTransitionTime)
Constructor of this class.
|
getCommandId, getTimeout, setCommandId, setTimeout, toJsonObject, toString@SerializedName(value="hueDegrees") public int hue
@SerializedName(value="saturationPct") public int saturation
@SerializedName(value="luminancePct") public int luminance
@SerializedName(value="useDefaultTransTimeFlag") public boolean useDefaultTransitionTime
@SerializedName(value="transitionTimeMs") public int transitionTime