\Nano4\Utils\JSONRPCClientResponse

A response from a JSON-RPC server.

Summary

Methods
Properties
Constants
__construct()
$success
$id
$result
$code
$message
$error_data
$
No constants found
No protected methods found
$client
N/A
No private methods found
No private properties found
N/A

Properties

$success

$success : 

If the response was successful, this will be true.

If not, this will be false.

Type

$id

$id : 

The id of the response.

Type

$result

$result : 

If the response is successful, this will be the response data.

Type

$code

$code : 

If the response is not successful, this will contain:

JSON-RPC 1.0 The 'error' property if it is an integer, or null. JSON-RPC 2.0 The 'code' property of the error object.

Type

$message

$message : 

If the response is not successful, this will contain:

JSON-RPC 1.0 The 'error' property if it is a string, or null. JSON-RPC 2.0 The 'message' property of the error object.

Type

$error_data

$error_data : 

If the response is not successful, this will contain:

JSON-RPC 1.0 The 'error' property, if it was not a string or integer. JSON-RPC 2.0 The 'data' property of the error object, if it was set.

Type

$

$ : 

Type

$client

$client : 

Type

Methods

__construct()

__construct(\Nano4\Utils\JSONRPC\Client  $client, Array  $response) 

Create a ClientResponse object.

Parameters

\Nano4\Utils\JSONRPC\Client $client

The parent Client instance.

Array $response

The response from the server.