| | |
| | | |
| | | RejectMessage* reject(rapidjson::Value& d) |
| | | { |
| | | return new RejectMessage(mapTypes[d["type"].GetString()], "", |
| | | return new RejectMessage(mapTypes[d["type"].GetString()], "", |
| | | d["error"].GetString(), uint64_t(0), double(0)); |
| | | } |
| | | |
| | |
| | | |
| | | std::string RejectMessage::as_string() |
| | | { |
| | | return "{\"type\": \"REJECT\", \"product\": \"" + this->product = |
| | | return "{\"type\": \"REJECT\", \"product\": \"" + this->product + |
| | | "\", \"error\": \"" + this->error + |
| | | "\", \"sequence\": " + std::to_string(this->sequence) + |
| | | ", \"timestamp\": " + std::to_string(this->timestamp) + "}"; |