public class DeviceInfo extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceInfo.Builder
A builder class that helps to create a Device Info object
|
Resource.ChangeListenerType| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_NAME |
RESPONSE_TIMEOUT, ROOT_RESOURCE_NAME| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getDescriptiveLocation() |
String |
getDeviceClass() |
String |
getFwVersion() |
String |
getHwVersion() |
String |
getManufacturer() |
String |
getModel() |
String |
getSerialNumber() |
void |
setDescription(String description) |
void |
setDescriptiveLocation(String descriptiveLocation) |
void |
setDeviceClass(String deviceClass) |
void |
setFwVersion(String fwVersion) |
void |
setHwVersion(String hwVersion) |
void |
setManufacturer(String manufacturer) |
void |
setModel(String model) |
void |
setSerialNumber(String serialNumber) |
com.google.gson.JsonObject |
toJsonObject() |
String |
toString() |
int |
update(DeviceInfo deviceInfo)
Update the device with new values
|
int |
update(com.google.gson.JsonElement deviceInfo)
Update the device with new values
|
int |
update(com.google.gson.JsonElement deviceInfo,
boolean fireEvent)
Update the device with new values
|
add, addPropertyChangeListener, addPropertyChangeListener, fireEvent, fireEvent, getCanonicalName, getChild, getChildren, getParent, getRC, getResourceName, getResponseRequired, getValue, notifyExternalListeners, remove, remove, removePropertyChangeListener, setParent, setRC, setValue, setValue, waitForResponsepublic static final String RESOURCE_NAME
public int update(DeviceInfo deviceInfo)
deviceInfo - The device info to be updatedpublic int update(com.google.gson.JsonElement deviceInfo)
public int update(com.google.gson.JsonElement deviceInfo,
boolean fireEvent)
public String getSerialNumber()
public void setSerialNumber(String serialNumber)
public String getManufacturer()
public void setManufacturer(String manufacturer)
public String getModel()
public void setModel(String model)
public String getDeviceClass()
public void setDeviceClass(String deviceClass)
public String getDescription()
public void setDescription(String description)
public String getFwVersion()
public void setFwVersion(String fwVersion)
public String getHwVersion()
public void setHwVersion(String hwVersion)
public String getDescriptiveLocation()
public void setDescriptiveLocation(String descriptiveLocation)
public com.google.gson.JsonObject toJsonObject()
toJsonObject in class ResourceJsonObject of the DeviceInfoCopyright © 2019. All rights reserved.