| | |
| | | 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 { |
| | | |
| | | //总条数 |