| | |
| | | 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; |
| | |
| | | return mHouseIdList; |
| | | } |
| | | |
| | | /** |
| | | * 设置列表数据 |
| | | * |
| | | * @param list 新列表 |
| | | * @param isClear 是否清除旧数据,true表示清除,否则不清除; |
| | | */ |
| | | public void setHouseIdList(List<HouseIdBean> list, boolean isClear) { |
| | | if (list == null || list.size() == 0) { |
| | | return; |
| | | } |
| | | if (isClear) { |
| | | this.clearHouseList(); |
| | | } |
| | | if (this.mHouseIdList.size() == 0) { |
| | | this.mHouseIdList.addAll(list); |
| | | return; |
| | | } |
| | | for (int i = 0; i < list.size(); i++) { |
| | | this.setSingleHouseId(list.get(i)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 设置列表数据 |
| | | * |
| | | * @param list 新列表数据 |
| | | */ |
| | | public void setHouseIdList(List<HouseIdBean> list) { |
| | | if (list == null || list.size() == 0) { |
| | | return; |
| | |
| | | * 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 |
| | |
| | | * ascending:升序), |
| | | * @param installedCapacityMin 最小组串容量(装机容量) |
| | | * @param installedCapacityMax 最大组串容量(装机容量) |
| | | * @param gridType 并网状态 (全部 :"";FULL_GRID : 并网;OFFLINE :离网) |
| | | * @param debugStatus 调试状态(全部;调试中;调试完成;已交付;授权调试) |
| | | * @param powerStationStatus 电站状态 (全部 :"";1 : 正常;2 : 离线; 3 : 待接入;4 : 故障) |
| | | * @param pageNo 页码 |
| | | * @param pageSize 页数(一页多少数据) |
| | | */ |
| | | public void getResidenceIdList( |
| | | String key, |
| | | String keyValue, |
| | | String installedCapacityMin, |
| | | String installedCapacityMax, |
| | | String gridType, |
| | | String powerStationStatus, |
| | | long pageNo, long pageSize, CloudCallBeak<HouseBeanClass> cloudCallBeak) { |
| | | public void getResidenceIdList(String key, String keyValue, String installedCapacityMin, String installedCapacityMax, String debugStatus, String powerStationStatus, long pageNo, long pageSize, CloudCallBeak<HouseBeanClass> cloudCallBeak) { |
| | | |
| | | String requestUrl = HttpApi.POST_PowerStation_List; |
| | | JsonObject json = new JsonObject(); |
| | |
| | | } catch (Exception ignored) { |
| | | } |
| | | } |
| | | if (!TextUtils.isEmpty(gridType)) { |
| | | if (!TextUtils.isEmpty(debugStatus)) { |
| | | try { |
| | | json.addProperty("gridType", gridType); |
| | | json.addProperty("debugStatus", debugStatus); |
| | | } catch (Exception ignored) { |
| | | } |
| | | } |
| | |
| | | * |
| | | * @param homeId 住宅id |
| | | */ |
| | | public void getResidenceInverterAllInfo(String |
| | | homeId, CloudCallBeak<Bitmap> cloudCallBeak) { |
| | | public void getResidenceInverterAllInfo(String homeId, CloudCallBeak<Bitmap> cloudCallBeak) { |
| | | String requestUrl = HttpApi.POST_inverter_allInfo; |
| | | JsonObject json = new JsonObject(); |
| | | json.addProperty("homeId", homeId); |
| | |
| | | * @param debugPerm 授权状态(true可以继续调试) |
| | | * @param cloudCallBeak - |
| | | */ |
| | | public void homeUpdateDebugPerm(String homeId, boolean debugPerm, CloudCallBeak< |
| | | Boolean> cloudCallBeak) { |
| | | public void homeUpdateDebugPerm(String homeId, boolean debugPerm, CloudCallBeak<Boolean> cloudCallBeak) { |
| | | String requestUrl = HttpApi.C_POST_HOME_UPDATEDEBUGPERM; |
| | | JsonObject json = new JsonObject(); |
| | | json.addProperty("homeId", homeId); |
| | |
| | | * @param account C端账号 |
| | | * @param cloudCallBeak - |
| | | */ |
| | | public void getDeliverToAccount(String homeId, String |
| | | account, CloudCallBeak<Boolean> cloudCallBeak) { |
| | | public void getDeliverToAccount(String homeId, String account, CloudCallBeak<Boolean> cloudCallBeak) { |
| | | String requestUrl = HttpApi.POST_deliverToAccount; |
| | | JsonObject json = new JsonObject(); |
| | | json.addProperty("homeId", homeId); |