JAVA - TR50 Response APIs
Overview
This section describes how to use the TR50 response
handling APIs available to parse TR50 response messages
from the deviceWISE Cloud. The API groups and API functions are
listed below. For more information on generic and specific
usage of these APIs, refer to the section on TR50
Response Handling. All response objects described below
extend the base response functions described in the
DwOpenGenericResponseclass.
TR50 Alarm
Supported Response Object(s): DwOpenResponse, StringReply, DwOpenAlarmHistory
Class DwOpenAlarmHistory
- java.lang.Object
-
com.devicewise.tr50.api.response.DwOpenGenericResponse
- com.devicewise.tr50.api.response.alarm.DwOpenAlarmHistory
-
com.devicewise.tr50.api.response.DwOpenGenericResponse
Constructors
Constructor and Description |
---|
DwOpenAlarmHistory() |
Methods
Modifier and Type | Method and Description |
---|---|
java.lang.String[]
|
getMessages() |
int[]
|
getStates() |
java.lang.String[]
|
getTimestamps() |
java.util.ArrayList<DwOpenAlarmHistory.values>
|
getValues() |
void
|
setMessages(java.lang.String[] messages) |
void
|
setStates(int[] states) |
void
|
setTimestamps(java.lang.String[] timestamps) |
void
|
setValues(java.util.ArrayList<DwOpenAlarmHistory.values> values) |
TR50 Property
Supported response object(s): DwOpenResponse, StringReply, DwOpenPropertyCurrent
Class DwOpenPropertyCurrent
- java.lang.Object
-
com.devicewise.tr50.api.response.DwOpenGenericResponse
- com.devicewise.tr50.api.response.property.DwOpenPropertyCurrent
-
com.devicewise.tr50.api.response.DwOpenGenericResponse
Constructors
Constructor and Description |
---|
DwOpenPropertyCurrent() |
Methods
Modifier and Type | Method and Description |
---|---|
java.lang.String
|
getCorrId() |
java.lang.String
|
getKey() |
java.lang.String
|
getTs() |
double
|
getValue() |
void
|
setCorrId(java.lang.String corrId) |
void
|
setKey(java.lang.String key) |
void
|
setTs(java.lang.String timestamp) |
void
|
setValue(double value) |
TR50 Location
Supported response object(s): DwOpenResponse, StringReply
TR50 Log
Supported response object(s): DwOpenResponse, StringReply
TR50 Thing
Supported response object(s): DwOpenResponse, StringReply, DwOpenThingAttributeGet
Class DwOpenThingAttributeGet
- java.lang.Object
-
com.devicewise.tr50.api.response.DwOpenGenericResponse
- com.devicewise.tr50.api.response.thing.DwOpenThingAttributeGet
-
com.devicewise.tr50.api.response.DwOpenGenericResponse
Constructors
Constructor and Description |
---|
DwOpenThingAttributeGet() |
Methods
Modifier and Type | Method and Description |
---|---|
java.lang.String
|
getTs() |
java.lang.String
|
getValue() |
void
|
setTs(java.lang.String ts) |
void
|
setValue(java.lang.String value) |
TR50 Mailbox
Supported response object(s): DwOpenResponse, StringReply, DwOpenMailBoxSend
Class DwOpenMailboxSend
- java.lang.Object
-
com.devicewise.tr50.api.response.DwOpenGenericResponse
- com.devicewise.tr50.api.response.mailbox.DwOpenMailboxSend
-
com.devicewise.tr50.api.response.DwOpenGenericResponse
Constructors
Constructor and Description |
---|
DwOpenMailboxSend() |
Methods
Modifier and Type | Method and Description |
---|---|
java.util.LinkedHashMap<java.lang.String,java.lang.Object>
|
getParams()
|
void
|
setParams(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
|
TR50 Method
Supported response object(s): DwOpenResponse, StringReply, DwOpenMethodExec
Class DwOpenMethodExec
- java.lang.Object
-
com.devicewise.tr50.api.response.DwOpenGenericResponse
-
com.devicewise.tr50.api.response.DwOpenParamsResponse
- com.devicewise.tr50.api.response.method.DwOpenMethodExec
-
com.devicewise.tr50.api.response.DwOpenParamsResponse
-
com.devicewise.tr50.api.response.DwOpenGenericResponse
Constructors
Constructor and Description |
---|
DwOpenMethodExec() |
Methods
Modifier and Type | Method and Description |
---|---|
java.util.LinkedHashMap<java.lang.String,java.lang.Object>
|
getParams() |
void
|
setParams(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params) |