}
gde::CommandResultTO
-gde::CommandResultTO::fromJson(std::string json)
+gde::CommandResultTO::fromJson(const std::string& json)
{
- std::cout << "CommandResultTO: " << json << std::endl;
Poco::JSON::Object::Ptr object = JsonFormatter::parse(json);
int code = JsonFormatter::extract<int>(object, "code");
std::string message = JsonFormatter::extract<std::string>(object, "message");
}
std::string
-gde::CommandResultTO::toJson()
+gde::CommandResultTO::toJson() const
{
Poco::JSON::Object obj;
obj.set("code", Poco::Dynamic::Var(_code));