public class Prop
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Prop.Names |
The retrievable properties.
|
| Constructor | Description |
|---|---|
Prop(Prop.Names[] props) |
Create a new light properties object.
|
| Modifier and Type | Method | Description |
|---|---|---|
Prop.Names[] |
getProps() |
|
org.json.JSONArray |
getRequestArray() |
|
java.util.Map<Prop.Names,java.lang.String> |
parseResponse(org.json.JSONArray response) |
Parse the response from the device and return a map containing the property names and their values.
|
public Prop(Prop.Names[] props)
props - The properties to retrieve.public Prop.Names[] getProps()
public org.json.JSONArray getRequestArray()
throws CommandExecutionException
CommandExecutionExceptionpublic java.util.Map<Prop.Names,java.lang.String> parseResponse(org.json.JSONArray response) throws CommandExecutionException
response - The response from the device.CommandExecutionExceptionCopyright © 2018. All rights reserved.