From 53057d6bbf444fe630debd9f043d4ce4ad22279b Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期五, 18 七月 2025 11:41:59 +0800 Subject: [PATCH] Merge branch '1.3.1' --- app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java | 52 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 49 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java index 4112b49..8e8afde 100644 --- a/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java +++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java @@ -233,7 +233,7 @@ houseInfoBean.setInstalledCapacity(houseIdBean.getInstalledCapacity());//瑁呮満瀹归噺 houseInfoBean.setPower(houseIdBean.getPower());//鍙戠數鍔熺巼 houseInfoBean.setTodayElectricity(houseIdBean.getTodayElectricity());//浠婂ぉ鍙戠數閲� - houseInfoBean.setPowerStationStatus(houseIdBean.getPowerStationStatus());//鐢电珯鐘舵��(鐢电珯鐘舵�� 1:姝e父(杩愯),2:绂荤嚎,3:杩炴帴涓�,4:鏁呴殰) + houseInfoBean.setPowerStationStatus(houseIdBean.getPowerStationStatus());//鐢电珯鐘舵��(鐢电珯鐘舵�� 1:姝e父(杩愯),2:绂荤嚎,3:杩炴帴涓�,4:鏁呴殰) //娣诲姞鍒版湰鍦扮紦瀛� addHouseToLocalMemory(houseInfoBean); } @@ -592,10 +592,25 @@ /** * 鐢电珯鐘舵�佹瑙�(瀹夎鍟�) + * + * @param debugStatus (璋冭瘯鐘舵��:Debugging = 璋冭瘯涓�,WAIT_DELIVERED = 璋冭瘯瀹屾垚,Delivered = 宸蹭氦浠�,SECONDARY_DEBUGGIN = 鎺堟潈璋冭瘯) + * @param installedCapacityMin 鏈�灏忕粍涓插閲�(瑁呮満瀹归噺) + * @param installedCapacityMax 鏈�澶х粍涓插閲�(瑁呮満瀹归噺) */ - public void getStatusOverview(CloudCallBeak<StatusOverviewBean> cloudCallBeak) { + public void getStatusOverview(String debugStatus, String installedCapacityMin, String installedCapacityMax, CloudCallBeak<StatusOverviewBean> cloudCallBeak) { String requestUrl = HttpApi.POST_statusOverview; JsonObject json = new JsonObject(); + if (!TextUtils.isEmpty(installedCapacityMin)) { + json.addProperty("installedCapacityMin", installedCapacityMin); + } + if (!TextUtils.isEmpty(installedCapacityMax)) { + json.addProperty("installedCapacityMax", installedCapacityMax); + } + if (!TextUtils.isEmpty(debugStatus)) { + json.addProperty("debugStatus", debugStatus); + } + + // json.addProperty("zoneType", zoneType);//鍖哄煙 HttpClient.getInstance().requestHttp(requestUrl, json.toString(), new CloudCallBeak<String>() { @Override @@ -1104,6 +1119,37 @@ } + /** + * 鍒犻櫎鎺ㄩ�乀oken + * + * @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 { //鎬绘潯鏁� @@ -1158,4 +1204,4 @@ } } -} +} \ No newline at end of file -- Gitblit v1.8.0