Constructor JsonRpcResponse
JsonRpcResponse(JsonRpcId, JsonRpcError, TResult)
Initialises a new XploRe.Net.JsonRpc.JsonRpcResponse{TResult} instance.
Declaration
public JsonRpcResponse(JsonRpcId id, JsonRpcError error, TResult result)
Parameters
Type |
Name |
Description |
JsonRpcId |
id |
The JSON-RPC ID of the response. |
JsonRpcError |
error |
The JSON-RPC response error object if an error occurred during the request. |
TResult |
result |
The JSON-RPC response result object if the request succeeded. |
Exceptions
JsonRpcResponse(JsonRpcId, String, JsonRpcError, TResult)
Initialises a new XploRe.Net.JsonRpc.JsonRpcResponse{TResult} instance.
Declaration
public JsonRpcResponse(JsonRpcId id, string protocolVersion, JsonRpcError error, TResult result)
Parameters
Type |
Name |
Description |
JsonRpcId |
id |
The JSON-RPC ID of the response. |
String |
protocolVersion |
The JSON-RPC version of the response. |
JsonRpcError |
error |
The JSON-RPC response error object if an error occurred during the request. |
TResult |
result |
The JSON-RPC response result object if the request succeeded. |
Exceptions