CLOUD: Update BoxListDirectoryByIdRequest

It now uses special CurlJsonRequest static methods to check whether JSON
is an object, has a string or integer parameter.
This commit is contained in:
Alexander Tkachev 2016-07-22 18:27:49 +06:00
parent 43c940c985
commit cccfe7c247
3 changed files with 51 additions and 55 deletions

View file

@ -52,6 +52,10 @@ public:
virtual void handle();
virtual void restart();
static bool jsonIsObject(Common::JSONValue *item, const char *warningPrefix);
static bool jsonContainsString(Common::JSONObject &item, const char *key, const char *warningPrefix);
static bool jsonContainsIntegerNumber(Common::JSONObject &item, const char *key, const char *warningPrefix);
};
} // End of namespace Networking