| 26 | RpcProtocolClient::RpcProtocolClient(clientVersion_t version, bool omitEndingLineFeed) : version(version), omitEndingLineFeed(omitEndingLineFeed) {} |
| 27 | |
| 28 | void RpcProtocolClient::BuildRequest(const std::string &method, const Json::Value ¶meter, std::string &result, bool isNotification) { |
| 29 | Json::Value request; |
| 30 | Json::StreamWriterBuilder wbuilder; |
| 31 | wbuilder["indentation"] = ""; |
| 32 | this->BuildRequest(1, method, parameter, request, isNotification); |
| 33 | |
| 34 | result = Json::writeString(wbuilder, request); |
| 35 | } |
| 36 | |
| 37 | void RpcProtocolClient::HandleResponse(const std::string &response, Json::Value &result) { |
| 38 | Json::Value value; |
no outgoing calls
no test coverage detected