MCPcopy Create free account
hub / github.com/cinemast/libjson-rpc-cpp / addResponse

Method addResponse

src/jsonrpccpp/client/batchresponse.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16BatchResponse::BatchResponse() {}
17
18void BatchResponse::addResponse(Json::Value &id, Json::Value response, bool isError) {
19 if (isError) {
20 errorResponses.push_back(id);
21 }
22 responses[id] = response;
23}
24
25Json::Value BatchResponse::getResult(int id) {
26 Json::Value result;

Callers 1

CallProceduresMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected