| | |
| | | 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; |
| | |
| | | houseInfoBean.setInstalledCapacity(houseIdBean.getInstalledCapacity());//装机容量 |
| | | houseInfoBean.setPower(houseIdBean.getPower());//发电功率 |
| | | houseInfoBean.setTodayElectricity(houseIdBean.getTodayElectricity());//今天发电量 |
| | | houseInfoBean.setPowerStationStatus(houseIdBean.getPowerStationStatus());//电站状态(电站状态 1:正常(运行),2:离线,3:连接中,4:故障) |
| | | houseInfoBean.setPowerStationStatus(houseIdBean.getPowerStationStatus());//电站状态(电站状态 1:正常(运行),2:离线,3:连接中,4:故障) |
| | | //添加到本地缓存 |
| | | addHouseToLocalMemory(houseInfoBean); |
| | | } |
| | |
| | | * 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); |
| | |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |