public class DirectMethodResponse
extends java.lang.Object
Constructor and Description |
---|
DirectMethodResponse(int status,
java.lang.Object payload)
Constructor for a DirectMethodResponse.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getPayload() |
int |
getStatus() |
void |
setPayload(java.lang.Object payload) |
void |
setStatus(int status) |
public DirectMethodResponse(int status, java.lang.Object payload)
status
- the status in DirectMethodResponse which is returned by the devicepayload
- the payload attached to that method. This parameter can be
Null: the DirectMethodResponse object will not include the "payload" field
Primitive type (e.g., String, Int)/Array/List/Map/custom type: will be serialized as value of the "payload" field using GSON.Copyright © 2023. All rights reserved.