| | |
| | | import androidx.recyclerview.widget.LinearLayoutManager; |
| | | import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; |
| | | |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.JsonObject; |
| | | import com.hdl.linkpm.sdk.core.exception.HDLException; |
| | | import com.hdl.photovoltaic.R; |
| | | import com.hdl.photovoltaic.bean.BaseEventBus; |
| | |
| | | //收到EventBUs通知 |
| | | if (ConstantManage.EVENTBUS_POST_HOME_CREATED.equals(eventBus.getType())) { |
| | | updateUIData(false); |
| | | if (eventBus.getData() != null) { |
| | | Gson gson = new Gson(); |
| | | String json = gson.toJson(eventBus.getData()); |
| | | HouseIdBean houseIdBean = gson.fromJson(json, HouseIdBean.class); |
| | | HdlResidenceLogic.getInstance().switchHouse(houseIdBean); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | houseInfoAdapter.setList(list); |
| | | houseInfoAdapter.notifyDataSetChanged(); |
| | | } |
| | | |
| | | } |
| | | } |
| | | }, _mActivity, ShowErrorMode.YES); |