#include <message.h>
Definition at line 59 of file message.h.
◆ Message()
| cryptonote::rpc::Message::Message |
( |
| ) |
|
|
inline |
Definition at line 68 of file message.h.
static const char * STATUS_OK
◆ ~Message()
| virtual cryptonote::rpc::Message::~Message |
( |
| ) |
|
|
inlinevirtual |
◆ fromJson()
| void cryptonote::rpc::Message::fromJson |
( |
rapidjson::Value & | val | ) |
|
|
virtual |
Definition at line 70 of file message.cpp.
71{
75}
std::string error_details
#define GET_FROM_JSON_OBJECT(source, dst, key)
◆ toJson()
| rapidjson::Value cryptonote::rpc::Message::toJson |
( |
rapidjson::Document & | doc | ) |
const |
|
virtual |
Definition at line 57 of file message.cpp.
58{
59 rapidjson::Value val(rapidjson::kObjectType);
60
61 auto& al = doc.GetAllocator();
62
63 val.AddMember(
"status", rapidjson::StringRef(
status.c_str()), al);
64 val.AddMember(
"error_details", rapidjson::StringRef(
error_details.c_str()), al);
66
67 return val;
68}
#define INSERT_INTO_JSON_OBJECT(jsonVal, doc, key, source)
◆ 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:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/rpc/message.h
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/rpc/message.cpp