| | |
| | | * @param installedCapacityMax 最大组串容量(装机容量) |
| | | * @param debugStatus 调试状态(全部;调试中;调试完成;已交付;授权调试) |
| | | * @param powerStationStatus 电站状态 (全部 :"";1 : 正常;2 : 离线; 3 : 待接入;4 : 故障) |
| | | * @param powerStationType 电站类型(INV = 逆变器电站;BMS = BMS电站) |
| | | * @param pageNo 页码 |
| | | * @param pageSize 页数(一页多少数据) |
| | | */ |
| | | public void getResidenceIdList(String key, String keyValue, String installedCapacityMin, String installedCapacityMax, String debugStatus, String powerStationStatus, long pageNo, long pageSize, CloudCallBeak<HouseBeanClass> cloudCallBeak) { |
| | | public void getResidenceIdList(String key, String keyValue, String installedCapacityMin, String installedCapacityMax, String debugStatus, String powerStationStatus, String powerStationType, long pageNo, long pageSize, CloudCallBeak<HouseBeanClass> cloudCallBeak) { |
| | | |
| | | String requestUrl = HttpApi.POST_PowerStation_List; |
| | | JsonObject json = new JsonObject(); |
| | |
| | | try { |
| | | int value = Integer.parseInt(powerStationStatus); |
| | | json.addProperty("powerStationStatus", value); |
| | | } catch (Exception ignored) { |
| | | } |
| | | } |
| | | if (!TextUtils.isEmpty(powerStationType)) { |
| | | try { |
| | | json.addProperty("powerStationType", powerStationType); |
| | | } catch (Exception ignored) { |
| | | } |
| | | } |
| | |
| | | * @param debugStatus (调试状态:Debugging = 调试中,WAIT_DELIVERED = 调试完成,Delivered = 已交付,SECONDARY_DEBUGGIN = 授权调试) |
| | | * @param installedCapacityMin 最小组串容量(装机容量) |
| | | * @param installedCapacityMax 最大组串容量(装机容量) |
| | | * @param powerStationType 电站类型(逆变器,BMS) |
| | | */ |
| | | public void getStatusOverview(String debugStatus, String installedCapacityMin, String installedCapacityMax, CloudCallBeak<StatusOverviewBean> cloudCallBeak) { |
| | | public void getStatusOverview(String debugStatus, String installedCapacityMin, String installedCapacityMax,String powerStationType, CloudCallBeak<StatusOverviewBean> cloudCallBeak) { |
| | | String requestUrl = HttpApi.POST_statusOverview; |
| | | JsonObject json = new JsonObject(); |
| | | if (!TextUtils.isEmpty(installedCapacityMin)) { |
| | |
| | | } |
| | | if (!TextUtils.isEmpty(debugStatus)) { |
| | | json.addProperty("debugStatus", debugStatus); |
| | | } |
| | | |
| | | if (!TextUtils.isEmpty(powerStationType)) { |
| | | json.addProperty("powerStationType", powerStationType); |
| | | } |
| | | |
| | | |
| | |
| | | // HdlFileLogic.getInstance().deleteDirectory(HdlFileLogic.getInstance().getCurrentHomeRootPath()); |
| | | //重新设置住宅id |
| | | UserConfigManage.getInstance().setHomeId(houseIdBean.getHomeId()); |
| | | UserConfigManage.getInstance().setPowerStationType(houseIdBean.getPowerStationType()); |
| | | UserConfigManage.getInstance().setHomeName(houseIdBean.getHomeName()); |
| | | //重新设置本地通讯秘钥 |
| | | UserConfigManage.getInstance().setLocalSecret(houseIdBean.getLocalSecret()); |
| | |
| | | }); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | public static class HouseBeanClass { |