| | |
| | | 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; |
| | |
| | | @Override |
| | | public void onClick(int position, HouseIdBean houseIdBean) { |
| | | //点击住宅详情 |
| | | HdlLogLogic.print("====点击住宅详情" + position); |
| | | HdlLogLogic.print("点击住宅详情===" + new Gson().toJson(houseIdBean)); |
| | | HdlResidenceLogic.getInstance().switchHouse(houseIdBean); |
| | | String path = HDLUniMP.UNI_EVENT_OPEN_HOME_DETAILS + "?homeId=" + houseIdBean.getHomeId(); |
| | | HdlUniLogic.getInstance().openUniMP(path, null); |
| | |
| | | //收到EventBUs通知 |
| | | if (ConstantManage.EVENTBUS_POST_HOME_CREATED.equals(eventBus.getType())) { |
| | | updateUIData(false); |
| | | if (eventBus.getData() != null) { |
| | | Gson gson = new Gson(); |
| | | String json = eventBus.getData().toString(); |
| | | HouseIdBean houseIdBean = gson.fromJson(json, HouseIdBean.class); |
| | | HdlResidenceLogic.getInstance().switchHouse(houseIdBean); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | houseInfoAdapter.setList(list); |
| | | houseInfoAdapter.notifyDataSetChanged(); |
| | | } |
| | | |
| | | } |
| | | } |
| | | }, _mActivity, ShowErrorMode.YES); |