Monero
Loading...
Searching...
No Matches
cryptonote::rpc::Message Class Reference

#include <message.h>

Public Member Functions

 Message ()
virtual ~Message ()
void toJson (rapidjson::Writer< epee::byte_stream > &dest) const
virtual void fromJson (const rapidjson::Value &val)

Public Attributes

std::string status
std::string error_details
uint32_t rpc_version

Static Public Attributes

static const char * STATUS_OK = "OK"
static const char * STATUS_RETRY = "Retry"
static const char * STATUS_FAILED = "Failed"
static const char * STATUS_BAD_REQUEST = "Invalid request type"
static const char * STATUS_BAD_JSON = "Malformed json"

Private Member Functions

virtual void doToJson (rapidjson::Writer< epee::byte_stream > &dest) const

Constructor & Destructor Documentation

◆ Message()

cryptonote::rpc::Message::Message ( )
inline

◆ ~Message()

virtual cryptonote::rpc::Message::~Message ( )
inlinevirtual

Member Function Documentation

◆ doToJson()

virtual void cryptonote::rpc::Message::doToJson ( rapidjson::Writer< epee::byte_stream > & dest) const
inlineprivatevirtual

◆ fromJson()

void cryptonote::rpc::Message::fromJson ( const rapidjson::Value & val)
virtual

◆ toJson()

void cryptonote::rpc::Message::toJson ( rapidjson::Writer< epee::byte_stream > & dest) const

Member Data Documentation

◆ error_details

std::string cryptonote::rpc::Message::error_details

◆ rpc_version

uint32_t cryptonote::rpc::Message::rpc_version

◆ status

std::string cryptonote::rpc::Message::status

◆ STATUS_BAD_JSON

const char * cryptonote::rpc::Message::STATUS_BAD_JSON = "Malformed json"
static

◆ STATUS_BAD_REQUEST

const char * cryptonote::rpc::Message::STATUS_BAD_REQUEST = "Invalid request type"
static

◆ STATUS_FAILED

const char * cryptonote::rpc::Message::STATUS_FAILED = "Failed"
static

◆ STATUS_OK

const char * cryptonote::rpc::Message::STATUS_OK = "OK"
static

◆ STATUS_RETRY

const char * cryptonote::rpc::Message::STATUS_RETRY = "Retry"
static

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