src/application.cpp
unique_ptr<SystemInfo> CPolkaApi::getSystemInfo() {

    Json systemNameQuery = Json::object{{"method", "system_name"}, {"params", Json::array{}}};
    Json systemNameJson = _jsonRpc->request(systemNameQuery);

    Json systemChainQuery = Json::object{{"method", "system_chain"}, {"params", Json::array{}}};
    Json systemChainJson = _jsonRpc->request(systemChainQuery);

    Json systemVersionQuery = Json::object{{"method", "system_version"}, {"params", Json::array{}}};
    Json systemVersionJson = _jsonRpc->request(systemVersionQuery);

    Json systemPropertiesQuery = Json::object{{"method", "system_properties"}, {"params", Json::array{}}};
    Json systemPropertiesJson = _jsonRpc->request(systemPropertiesQuery);

    Json completeJson = Json::array{systemNameJson, systemChainJson, systemVersionJson, systemPropertiesJson};

    return move(deserialize<SystemInfo, &CPolkaApi::createSystemInfo>(completeJson));
}
/**  Call 4 methods and put them together in a single object
 *  system_chain
 *  system_name
 *  system_version
 *  system_properties
 */
Call 4 methods and put them together in a single object
system_chain
system_name
system_version
system_properties
Call 4 methods and put them together in a single object system_chain system_name system_version system_properties
unique_ptr<SystemInfo> CPolkaApi::getSystemInfo() {
    Json systemNameQuery = Json::object{{"method", "system_name"}, {"params", Json::array{}}};
    Json systemNameJson = _jsonRpc->request(systemNameQuery);
    Json systemChainQuery = Json::object{{"method", "system_chain"}, {"params", Json::array{}}};
    Json systemChainJson = _jsonRpc->request(systemChainQuery);
    Json systemVersionQuery = Json::object{{"method", "system_version"}, {"params", Json::array{}}};
    Json systemVersionJson = _jsonRpc->request(systemVersionQuery);
    Json systemPropertiesQuery = Json::object{{"method", "system_properties"}, {"params", Json::array{}}};
    Json systemPropertiesJson = _jsonRpc->request(systemPropertiesQuery);
    Json completeJson = Json::array{systemNameJson, systemChainJson, systemVersionJson, systemPropertiesJson};
    return move(deserialize<SystemInfo, &CPolkaApi::createSystemInfo>(completeJson));
}
unique_ptr < SystemInfo > CPolkaApi :: getSystemInfo ( ) { Json systemNameQuery = Json :: object { { " " , " " } , { " " , Json :: array { } } } ; Json systemNameJson = _jsonRpc -> request ( systemNameQuery ) ; Json systemChainQuery = Json :: object { { " " , " " } , { " " , Json :: array { } } } ; Json systemChainJson = _jsonRpc -> request ( systemChainQuery ) ; Json systemVersionQuery = Json :: object { { " " , " " } , { " " , Json :: array { } } } ; Json systemVersionJson = _jsonRpc -> request ( systemVersionQuery ) ; Json systemPropertiesQuery = Json :: object { { " " , " " } , { " " , Json :: array { } } } ; Json systemPropertiesJson = _jsonRpc -> request ( systemPropertiesQuery ) ; Json completeJson = Json :: array { systemNameJson , systemChainJson , systemVersionJson , systemPropertiesJson } ; return move ( deserialize < SystemInfo , & CPolkaApi :: createSystemInfo > ( completeJson ) ) ; }
Call 4 methods and put them together in a single object
  system_chain
  system_name
  system_version
  system_properties
Call 4 methods and put them together in a single object system_chain system_name system_version system_properties