| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_LIGHT_STATE |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
LightControlData()
Constructs a new LightControlData object
|
LightControlData(Hashtable<String,Object> hash)
Constructs a new LightControlData object indicated by the Hashtable parameter
|
LightControlData(List<LightState> lightState)
Constructs a newly allocated LightControlData object
|
| Modifier and Type | Method and Description |
|---|---|
List<LightState> |
getLightState()
Gets the lightState portion of the LightControlData class
|
LightControlData |
setLightState(List<LightState> lightState)
Sets the lightState portion of the LightControlData class
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_LIGHT_STATE
public LightControlData()
public LightControlData(Hashtable<String,Object> hash)
Constructs a new LightControlData object indicated by the Hashtable parameter
hash - The Hashtable to usepublic LightControlData(@NonNull
List<LightState> lightState)
lightState - An array of LightNames and their current or desired status.
Status of the LightNames that are not listed in the array shall remain unchanged.public List<LightState> getLightState()
public LightControlData setLightState(@NonNull List<LightState> lightState)
lightState - An array of LightNames and their current or desired status. Status of the LightNames that are not listed in the array shall remain unchanged.