| | |
| | | import com.hdl.photovoltaic.base.CustomBaseFragment; |
| | | import com.hdl.photovoltaic.config.ConstantManage; |
| | | import com.hdl.photovoltaic.databinding.FragmentNascentMessageBinding; |
| | | import com.hdl.photovoltaic.enums.MessageFunctionTabSwitch; |
| | | import com.hdl.photovoltaic.listener.CloudCallBeak; |
| | | import com.hdl.photovoltaic.other.HdlCommonLogic; |
| | | import com.hdl.photovoltaic.other.HdlMessageLogic; |
| | |
| | | } |
| | | |
| | | private void initData() { |
| | | // mList = new ArrayList<>(); |
| | | // for (int i = 0; i < 3; i++) { |
| | | // MessageBean messageBean = new MessageBean(); |
| | | // messageBean.setTitle("来了一条告警信息" + i); |
| | | // messageBean.setHomeName(i + ""); |
| | | // messageBean.setCreateTime((long) 1234567777); |
| | | // messageBean.setRead(false); |
| | | // mList.add(messageBean); |
| | | // } |
| | | getNascentMessageList(true); |
| | | } |
| | | |
| | | private void initEvent() { |
| | |
| | | super.onEventMessage(eventBus); |
| | | //接收外部点击事件 |
| | | if (eventBus.getTopic().equals(ConstantManage.message_function_tab_switch)) { |
| | | if (eventBus.getType().equals(HdlCommonLogic.MessageFunctionTabSwitch.nascent.toString())) { |
| | | if (eventBus.getType().equals(MessageFunctionTabSwitch.nascent.toString())) { |
| | | getNascentMessageList(true); |
| | | } |
| | | } |