| | |
| | | import android.graphics.BitmapFactory; |
| | | import android.os.Build; |
| | | import android.text.TextUtils; |
| | | import android.util.Log; |
| | | |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.JsonObject; |
| | |
| | | * ascending:升序), |
| | | */ |
| | | public void getResidenceIdList(String key, String keyValue, CloudCallBeak<List<HouseIdBean>> cloudCallBeak) { |
| | | |
| | | String requestUrl = HttpApi.POST_PowerStation_List; |
| | | JsonObject json = new JsonObject(); |
| | | if (!TextUtils.isEmpty(key) && !TextUtils.isEmpty(keyValue)) { |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | |
| | | json.addProperty("installedCapacityMin", installedCapacityMin); |
| | | } |
| | | if (!TextUtils.isEmpty(installedCapacityMax)) { |
| | | json.addProperty("installedCapacityMin", installedCapacityMax); |
| | | json.addProperty("installedCapacityMax", installedCapacityMax); |
| | | } |
| | | if (!TextUtils.isEmpty(debugStatus)) { |
| | | json.addProperty("debugStatus", debugStatus); |
| | |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 删除推送Token |
| | | * |
| | | * @param cloudCallBeak - |
| | | */ |
| | | public void pushDel(CloudCallBeak<String> cloudCallBeak) { |
| | | String requestUrl = HttpApi.POST_push_del; |
| | | JsonObject json = new JsonObject(); |
| | | json.addProperty("pushId", UserConfigManage.getInstance().getPushId()); |
| | | json.addProperty("pushToken", UserConfigManage.getInstance().getRegistrationID()); |
| | | |
| | | HttpClient.getInstance().requestHttp(requestUrl, json.toString(), new CloudCallBeak<String>() { |
| | | @Override |
| | | public void onSuccess(String jsonStr) { |
| | | if (cloudCallBeak != null) { |
| | | cloudCallBeak.onSuccess(jsonStr); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void onFailure(HDLException e) { |
| | | if (cloudCallBeak != null) { |
| | | cloudCallBeak.onFailure(e); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | |
| | | } |
| | | |
| | | public static class HouseBeanClass { |
| | | |
| | | //总条数 |