| | |
| | | import com.hdl.sdk.hdl_core.HDLDeviceManger.EventBusEvent.AirFeedBackEvent; |
| | | import com.hdl.sdk.hdl_core.HDLDeviceManger.EventBusEvent.CurtainFeedBackEvent; |
| | | import com.hdl.sdk.hdl_core.HDLDeviceManger.EventBusEvent.DeviceStateEvent; |
| | | import com.hdl.sdk.hdl_core.HDLDeviceManger.EventBusEvent.EventCode; |
| | | import com.hdl.sdk.hdl_core.HDLDeviceManger.EventBusEvent.FreshAirFeedBackEvent; |
| | | import com.hdl.sdk.hdl_core.HDLDeviceManger.EventBusEvent.GeothermalFeedBackEvent; |
| | | import com.hdl.sdk.hdl_core.HDLDeviceManger.EventBusEvent.LightFeedBackEvent; |
| | | import com.hdl.sdk.hdl_core.HDLDeviceManger.EventBusEvent.LogicFeedBackEvent; |
| | | import com.hdl.sdk.hdl_core.Util.LogUtil.HDLLog; |
| | | import com.hdl.sdk.hdl_core.Util.SPUtil.SPUtils; |
| | | import com.hdl.sdk.hdl_core.Util.TransformUtil.HDLUtlis; |
| | | |
| | | import org.greenrobot.eventbus.EventBus; |
| | | |
| | |
| | | if (!HDLDeviceManager.isGeothermalCtrlSuccess) { |
| | | GeothermalBackInfo mGeothermalBackInfo = new GeothermalBackInfo(); |
| | | mGeothermalBackInfo.setAppliancesInfo(info); |
| | | EventBus.getDefault().post(new GeothermalFeedBackEvent(mGeothermalBackInfo, false)); |
| | | EventBus.getDefault().post(new GeothermalFeedBackEvent(mGeothermalBackInfo, EventCode.FAILURE)); |
| | | } |
| | | } |
| | | }, 5000); |
| | |
| | | && info.getLittleType() == infos.get(j).getLittleType() |
| | | && info.getChannelNum() == infos.get(j).getChannelNum() |
| | | ) { |
| | | curState = (int) infos.get(j).getCurState(); |
| | | // curState = (int) infos.get(j).getCurState();//旧 |
| | | //20190712解决强制转换int类型闪退 |
| | | curState = HDLUtlis.getIntegerByObject(infos.get(j).getCurState()); |
| | | break outter; |
| | | } |
| | | |
| | |
| | | && info.getChannelNum() == infos.get(j).getChannelNum() |
| | | ) { |
| | | //这里应该是要修复的,暂时未找到。 |
| | | switch ((int) infos.get(j).getCurState()) { |
| | | //20190712解决强制转换int类型闪退 |
| | | int state = HDLUtlis.getIntegerByObject(infos.get(j).getCurState()); |
| | | switch (state) { |
| | | case -1: |
| | | curState = 0; |
| | | break; |
| | |
| | | curState = 2; |
| | | break; |
| | | default: |
| | | curState = (int) infos.get(j).getCurState(); |
| | | // curState = (int) infos.get(j).getCurState(); |
| | | curState = state; |
| | | break; |
| | | |
| | | } |