Package org.json

Examples of org.json.JSONObject.optInt()


      JSONArray aData = new JSONArray(data);
      final int n = aData.length();
      if (n > 0) {
        for (int i = 0; i < n; i++) {
          JSONObject tmp = aData.getJSONObject(i);
          list.add(new NumberResponse(tmp.optString("id"), tmp.optString("number"), tmp.optInt("mcc"), tmp.optInt("mnc"), tmp.optString("info"), tmp.optString("status"), tmp.optInt("date"), tmp.optInt("ported"), tmp.optInt("ported_from"), tmp.optString("price")) {
          });
        }
      }
    }
  }
View Full Code Here


      JSONArray aData = new JSONArray(data);
      final int n = aData.length();
      if (n > 0) {
        for (int i = 0; i < n; i++) {
          JSONObject tmp = aData.getJSONObject(i);
          list.add(new NumberResponse(tmp.optString("id"), tmp.optString("number"), tmp.optInt("mcc"), tmp.optInt("mnc"), tmp.optString("info"), tmp.optString("status"), tmp.optInt("date"), tmp.optInt("ported"), tmp.optInt("ported_from"), tmp.optString("price")) {
          });
        }
      }
    }
  }
View Full Code Here

      JSONArray aData = new JSONArray(data);
      final int n = aData.length();
      if (n > 0) {
        for (int i = 0; i < n; i++) {
          JSONObject tmp = aData.getJSONObject(i);
          list.add(new NumberResponse(tmp.optString("id"), tmp.optString("number"), tmp.optInt("mcc"), tmp.optInt("mnc"), tmp.optString("info"), tmp.optString("status"), tmp.optInt("date"), tmp.optInt("ported"), tmp.optInt("ported_from"), tmp.optString("price")) {
          });
        }
      }
    }
  }
View Full Code Here

      JSONArray aData = new JSONArray(data);
      final int n = aData.length();
      if (n > 0) {
        for (int i = 0; i < n; i++) {
          JSONObject tmp = aData.getJSONObject(i);
          list.add(new NumberResponse(tmp.optString("id"), tmp.optString("number"), tmp.optInt("mcc"), tmp.optInt("mnc"), tmp.optString("info"), tmp.optString("status"), tmp.optInt("date"), tmp.optInt("ported"), tmp.optInt("ported_from"), tmp.optString("price")) {
          });
        }
      }
    }
  }
View Full Code Here

      JSONArray aData = new JSONArray(data);
      final int n = aData.length();
      if (n > 0) {
        for (int i = 0; i < n; i++) {
          JSONObject tmp = aData.getJSONObject(i);
          list.add(new GroupResponse(tmp.optString("name"), tmp.optString("info"), tmp.optInt("numbers_count")));
        }
      }
    }

  }
View Full Code Here

      JSONArray aData = new JSONArray(data);
      final int n = aData.length();
      if (n > 0) {
        for (int i = 0; i < n; i++) {
          JSONObject tmp = aData.getJSONObject(i);
          list.add(new ContactResponse(tmp.optString("number"), tmp.optString("first_name"), tmp.optString("last_name"), tmp.optString("info"), tmp.optString("birthday"), tmp.optString("city"), tmp.optString("gender"), tmp.optInt("date_add"), tmp.optInt("date_mod")));
        }
      }
    }
  }
View Full Code Here

      JSONArray aData = new JSONArray(data);
      final int n = aData.length();
      if (n > 0) {
        for (int i = 0; i < n; i++) {
          JSONObject tmp = aData.getJSONObject(i);
          list.add(new ContactResponse(tmp.optString("number"), tmp.optString("first_name"), tmp.optString("last_name"), tmp.optString("info"), tmp.optString("birthday"), tmp.optString("city"), tmp.optString("gender"), tmp.optInt("date_add"), tmp.optInt("date_mod")));
        }
      }
    }
  }
View Full Code Here

      JSONArray aData = new JSONArray(data);
      final int n = aData.length();
      if (n > 0) {
        for (int i = 0; i < n; i++) {
          JSONObject tmp = aData.getJSONObject(i);
          list.add(new UserResponse(tmp.optString("username"), tmp.optString("limit"), tmp.optString("month_limit"), tmp.optInt("senders"), tmp.optInt("phonebook"), tmp.optInt("active"), tmp.optString("info")));
        }
      }
    }

  }
View Full Code Here

      JSONArray aData = new JSONArray(data);
      final int n = aData.length();
      if (n > 0) {
        for (int i = 0; i < n; i++) {
          JSONObject tmp = aData.getJSONObject(i);
          list.add(new UserResponse(tmp.optString("username"), tmp.optString("limit"), tmp.optString("month_limit"), tmp.optInt("senders"), tmp.optInt("phonebook"), tmp.optInt("active"), tmp.optString("info")));
        }
      }
    }

  }
View Full Code Here

      JSONArray aData = new JSONArray(data);
      final int n = aData.length();
      if (n > 0) {
        for (int i = 0; i < n; i++) {
          JSONObject tmp = aData.getJSONObject(i);
          list.add(new UserResponse(tmp.optString("username"), tmp.optString("limit"), tmp.optString("month_limit"), tmp.optInt("senders"), tmp.optInt("phonebook"), tmp.optInt("active"), tmp.optString("info")));
        }
      }
    }

  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.