mirror of https://github.com/M66B/FairEmail.git
Cloud accounting
This commit is contained in:
parent
f27110acaa
commit
2ae3f845a9
|
@ -164,6 +164,18 @@ public class CloudSync {
|
|||
Log.i("Cloud response length=" + response.length());
|
||||
JSONObject jresponse = new JSONObject(response);
|
||||
|
||||
if (jresponse.has("account")) {
|
||||
JSONObject jaccount = jresponse.getJSONObject("account");
|
||||
if (jaccount.has("consumed"))
|
||||
Log.i("Cloud $$$ account consumed=" + jaccount.get("consumed"));
|
||||
if (jaccount.has("metrics"))
|
||||
Log.i("Cloud $$$ account metrics=" + jaccount.get("metrics"));
|
||||
}
|
||||
if (jresponse.has("consumed"))
|
||||
Log.i("Cloud $$$ consumed=" + jresponse.get("consumed"));
|
||||
if (jresponse.has("metrics"))
|
||||
Log.i("Cloud $$$ metrics=" + jresponse.get("metrics"));
|
||||
|
||||
if (jresponse.has("items")) {
|
||||
JSONArray jitems = jresponse.getJSONArray("items");
|
||||
for (int i = 0; i < jitems.length(); i++) {
|
||||
|
|
Loading…
Reference in New Issue