| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_MODULE_INFO |
static String |
KEY_MODULE_NAME |
static String |
KEY_SUPPORTED_LIGHTS |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
LightControlCapabilities()
Constructs a new LightControlCapabilities object
|
LightControlCapabilities(Hashtable<String,Object> hash)
Constructs a new LightControlCapabilities object indicated by the Hashtable parameter
|
LightControlCapabilities(String moduleName,
List<LightCapabilities> supportedLights)
Constructs a newly allocated LightControlCapabilities object
|
| Modifier and Type | Method and Description |
|---|---|
ModuleInfo |
getModuleInfo()
Gets a ModuleInfo of this capability
|
String |
getModuleName()
Gets the moduleName portion of the LightControlCapabilities class
|
List<LightCapabilities> |
getSupportedLights()
Gets the supportedLights portion of the LightControlCapabilities class
|
LightControlCapabilities |
setModuleInfo(ModuleInfo info)
Sets ModuleInfo for this capability
|
LightControlCapabilities |
setModuleName(String moduleName)
Sets the moduleName portion of the LightControlCapabilities class
|
LightControlCapabilities |
setSupportedLights(List<LightCapabilities> supportedLights)
Sets the supportedLights portion of the LightControlCapabilities 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_MODULE_NAME
public static final String KEY_SUPPORTED_LIGHTS
public static final String KEY_MODULE_INFO
public LightControlCapabilities()
public LightControlCapabilities(Hashtable<String,Object> hash)
Constructs a new LightControlCapabilities object indicated by the Hashtable parameter
hash - The Hashtable to usepublic LightControlCapabilities(@NonNull
String moduleName,
@NonNull
List<LightCapabilities> supportedLights)
moduleName - short friendly name of the light control module.supportedLights - An array of available LightCapabilities that are controllable.public LightControlCapabilities setModuleName(@NonNull String moduleName)
moduleName - The short friendly name of the light control module. It should not be used to identify a module by mobile application.public String getModuleName()
public List<LightCapabilities> getSupportedLights()
public LightControlCapabilities setSupportedLights(@NonNull List<LightCapabilities> supportedLights)
supportedLights - An array of available LightCapabilities that are controllable.public LightControlCapabilities setModuleInfo(ModuleInfo info)
info - the ModuleInfo to be setpublic ModuleInfo getModuleInfo()