public class DeviceMetadata extends Resource
This class represents the metadata information of a device.
Resource.ChangeListenerTypeRESPONSE_TIMEOUT, ROOT_RESOURCE_NAME| Constructor and Description |
|---|
DeviceMetadata(com.google.gson.JsonObject metadata) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonObject |
getMetadata()
Returns the value
|
void |
setMetadata(com.google.gson.JsonObject metadata)
Set the metadata to new value
|
com.google.gson.JsonElement |
toJsonObject()
Returns the value in Json Format
|
String |
toString() |
int |
update(com.google.gson.JsonElement json)
Updates the value of this resource with the given Json value
|
int |
update(com.google.gson.JsonElement json,
boolean fireEvent)
Updates the value of this resource with the given Json value
|
add, addPropertyChangeListener, addPropertyChangeListener, fireEvent, fireEvent, getCanonicalName, getChild, getChildren, getParent, getRC, getResourceName, getResponseRequired, getValue, notifyExternalListeners, remove, remove, removePropertyChangeListener, setParent, setRC, setValue, setValue, waitForResponsepublic void setMetadata(com.google.gson.JsonObject metadata)
metadata - new metadata to be setpublic com.google.gson.JsonElement toJsonObject()
toJsonObject in class Resourcepublic com.google.gson.JsonObject getMetadata()
public int update(com.google.gson.JsonElement json)
public int update(com.google.gson.JsonElement json,
boolean fireEvent)
Copyright © 2019. All rights reserved.