public class QueryResponse
extends SmartHomeResponse
A representation of the JSON payload that should be sent during an action.devices.QUERY request.
Modifier and Type | Class and Description |
---|---|
static class |
QueryResponse.Payload |
Modifier and Type | Field and Description |
---|---|
QueryResponse.Payload |
payload |
java.lang.String |
requestId |
Constructor and Description |
---|
QueryResponse()
A representation of the JSON payload that should be sent during an action.devices.QUERY request.
|
QueryResponse(java.lang.String requestId,
QueryResponse.Payload payload) |
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
build() |
QueryResponse.Payload |
getPayload() |
java.lang.String |
getRequestId() |
void |
setPayload(QueryResponse.Payload p) |
void |
setRequestId(java.lang.String p) |
build
public java.lang.String requestId
public QueryResponse.Payload payload
public QueryResponse()
A representation of the JSON payload that should be sent during an action.devices.QUERY request.
public QueryResponse(java.lang.String requestId, QueryResponse.Payload payload)
public java.lang.String getRequestId()
public void setRequestId(java.lang.String p)
public QueryResponse.Payload getPayload()
public void setPayload(QueryResponse.Payload p)
public org.json.JSONObject build()