MethodRequest Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. edge. MethodRequest
- com.
public class MethodRequest
Json parser for a method request. Used to invoke methods on other devices/modules
Constructor Summary
| Constructor | Description |
|---|---|
| MethodRequest(String methodName, String payload) |
Constructor for a Method |
| MethodRequest(String methodName, String payload, Integer responseTimeout, Integer connectionTimeout) |
Constructor for a Method |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
toJson()
Return the json representation of this object |
Methods inherited from java.lang.Object
Constructor Details
MethodRequest
public MethodRequest(String methodName, String payload)
Constructor for a MethodRequest. Uses default responseTimeout and connectionTimeout which is to never timeout
Parameters:
Throws:
MethodRequest
public MethodRequest(String methodName, String payload, Integer responseTimeout, Integer connectionTimeout)
Constructor for a MethodRequest.
Parameters:
Throws:
Method Details
toJson
public String toJson()
Return the json representation of this object
Returns: