mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Cloud accounting
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user