public class IoTDeviceInfo
extends java.lang.Object
Constructor and Description |
---|
IoTDeviceInfo(org.json.JSONObject jsonObject) |
IoTDeviceInfo(java.lang.String jsonString) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBatteryStatus() |
java.lang.String |
getCategory() |
boolean |
getDoorContact() |
int |
getHumidity() |
java.lang.String |
getId() |
java.lang.String |
getName() |
int |
getSmartBulbBright() |
int |
getSmartBulbColorTemperature() |
boolean |
getSmartBulbSwitch() |
int |
getTemperature() |
boolean |
isOnline() |
static java.util.List<IoTDeviceInfo> |
toIotDeviceInfoList(java.lang.String jsonString) |
public IoTDeviceInfo(org.json.JSONObject jsonObject)
public IoTDeviceInfo(java.lang.String jsonString) throws org.json.JSONException
org.json.JSONException
public java.lang.String getBatteryStatus()
public java.lang.String getCategory()
public boolean getDoorContact()
public int getHumidity()
public java.lang.String getId()
public java.lang.String getName()
public int getSmartBulbBright()
public int getSmartBulbColorTemperature()
public boolean getSmartBulbSwitch()
public int getTemperature()
public boolean isOnline()
public static java.util.List<IoTDeviceInfo> toIotDeviceInfoList(java.lang.String jsonString) throws org.json.JSONException
org.json.JSONException