Exemple #1
0
 public Balance get(String carNumber) {
   String url = Values.DOMAIN + "Balance/?Balance.carnumber=" + carNumber;
   String resultXML = HttpHelper.SendHttpRequest("get", url, null);
   List<Balance> us = Balance.parseJSON(resultXML);
   if (us.size() == 0) return null;
   return us.get(0);
 }
Exemple #2
0
 public List<Balance> getAll() {
   String url = Values.DOMAIN + "Balance/";
   String resultXML = HttpHelper.SendHttpRequest("get", url, null);
   List<Balance> ret = Balance.parseJSON(resultXML);
   return ret;
 }