@@ -122,14 +122,13 @@ private:
|
||||
};
|
||||
|
||||
|
||||
inline bool isJsonSuccess(const json& res) {
|
||||
inline bool isJsonResultSuccess(const json& res) {
|
||||
return res.find("result") != res.end() &&
|
||||
QString::fromStdString(res["result"].get<json::string_t>()) == "success";
|
||||
}
|
||||
|
||||
inline bool isJsonError(const json& res) {
|
||||
return res.find("result") != res.end() &&
|
||||
QString::fromStdString(res["result"].get<json::string_t>()) == "error";
|
||||
return res.find("error") != res.end();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user