CLOUD: Update OneDrive
Added JSON checks. New jsonContainsObject() method added to CurlJsonRequest.
This commit is contained in:
parent
d34b9b91ad
commit
fc8e29d583
5 changed files with 83 additions and 22 deletions
|
@ -54,6 +54,7 @@ public:
|
|||
virtual void restart();
|
||||
|
||||
static bool jsonIsObject(Common::JSONValue *item, const char *warningPrefix);
|
||||
static bool jsonContainsObject(Common::JSONObject &item, const char *key, const char *warningPrefix, bool isOptional = false);
|
||||
static bool jsonContainsString(Common::JSONObject &item, const char *key, const char *warningPrefix, bool isOptional = false);
|
||||
static bool jsonContainsIntegerNumber(Common::JSONObject &item, const char *key, const char *warningPrefix, bool isOptional = false);
|
||||
static bool jsonContainsArray(Common::JSONObject &item, const char *key, const char *warningPrefix, bool isOptional = false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue