MethodResponse Class 
Represents a response to a direct method.
Initializer for MethodResponse.
Constructor
MethodResponse(request_id, status, payload=None)Parameters
| Name | Description | 
|---|---|
| request_id 
				Required
			 | The request id of the MethodRequest being responded to. | 
| status 
				Required
			 | The status of the execution of the MethodRequest. | 
| payload | The JSON payload to be sent with the response. (OPTIONAL) Default value: None | 
Variables
| Name | Description | 
|---|---|
| request_id | The request id of the MethodRequest being responded to. | 
| status | The status of the execution of the MethodRequest. | 
| payload | The JSON payload to be sent with the response. | 
Methods
| create_from_method_request | Factory method for creating a MethodResponse from a MethodRequest. | 
create_from_method_request
Factory method for creating a MethodResponse from a MethodRequest.
create_from_method_request(method_request, status, payload=None)Parameters
| Name | Description | 
|---|---|
| method_request 
				Required
			 | 
				<xref:MethodRequest.>
		 The MethodRequest object to respond to. | 
| status 
				Required
			 | The status of the execution of the MethodRequest. | 
| payload | Default value: None |