MIRA
Public Member Functions | Public Attributes | List of all members
JSONRPCResponse Class Reference

Wraps a JSON RPC call response. More...

#include <rpc/JSONRPCResponse.h>

Public Member Functions

 JSONRPCResponse ()
 
 JSONRPCResponse (const json::Value &iResponse)
 
json::Value getResult () const
 Return the result of the RPC call. More...
 

Public Attributes

json::Value response
 The complete JSON RPC 2.0 response. More...
 

Detailed Description

Wraps a JSON RPC call response.

Is used for specialization of RPCFuture for JSON RPC calls.

Constructor & Destructor Documentation

◆ JSONRPCResponse() [1/2]

JSONRPCResponse ( )
inline

◆ JSONRPCResponse() [2/2]

JSONRPCResponse ( const json::Value iResponse)
inline

Member Function Documentation

◆ getResult()

json::Value getResult ( ) const
inline

Return the result of the RPC call.

Exceptions
XRPCif no result was set or if the JSON RPC call returned an error
Returns
The result as json::Value

Member Data Documentation

◆ response

json::Value response

The complete JSON RPC 2.0 response.


The documentation for this class was generated from the following file: