public static class Device.SetResourceMetadata extends Command<Device.CommandId>
Device.sendDeviceManagementCommand(buzz.getcoco.iot.Command<buzz.getcoco.iot.Device.CommandId>, buzz.getcoco.iot.Device.DeviceManagementStatusListener)
while sending set resource metadata commands.Command.State
Modifier and Type | Field and Description |
---|---|
java.lang.String |
resourceEui |
java.lang.String |
resourceMetadata |
Constructor and Description |
---|
SetResourceMetadata(Resource resource,
java.lang.String metadata)
An overloaded constructor for this command.
|
getCommandId, getTimeout, setCommandId, setTimeout, toJsonObject, toString
@SerializedName(value="resourceEui") public java.lang.String resourceEui
@SerializedName(value="metadata") public java.lang.String resourceMetadata
public SetResourceMetadata(Resource resource, java.lang.String metadata)
resource
- Resource in interest whose metadata change is neededmetadata
- The metadata to replace the existing metadata