public abstract class DeviceApp
extends java.lang.Object
DeviceApp represents an application, running on a device, and implementing its own device model.| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceApp.Field
The Field enum defines the characteristics of a device.
|
| Constructor and Description |
|---|
DeviceApp() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.List<java.lang.String> |
getDeviceModels()
Get the list of device models supported by this endpoint.
|
abstract java.lang.String |
getId()
Get the endpoint identifier.
|
abstract java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Return the endpoint metadata.
|
abstract java.lang.String |
getMetadata(java.lang.String key)
Return the value of the metadata field
key. |
abstract java.lang.String |
getValue(DeviceApp.Field field)
Get the value of the specified
field or an empty String if the value is unknown. |
public abstract java.lang.String getId()
public abstract java.util.Map<java.lang.String,java.lang.String> getMetadata()
public abstract java.lang.String getMetadata(java.lang.String key)
key.key - the metadata key to returnkey or null if not found.public abstract java.util.List<java.lang.String> getDeviceModels()
public abstract java.lang.String getValue(DeviceApp.Field field)
field or an empty String if the value is unknown.field - the field to look for