| | |
| | | model.setChannelNo(device.getChannelNo()); |
| | | model.setChannelInfo(device.getChannelType()); |
| | | model.setResourceType(device.getAudioChannelType()); |
| | | model.setIp(device.getIp()); |
| | | model.setPort(device.getPort()); |
| | | model.setDoorId(device.getParentDevIndexCode()); |
| | | model.setStatus(device.getState()); |
| | | model.setRegionName(device.getRegionName()); |
| | | model.setRemark(JSONObject.toJSONString(device)); |
| | | return model; |
| | | } |
| | | private Device initBroadcastDeviceDataByHkData(Device model, FetchAudioDeviceInfoResponse device, Date date) { |
| | |
| | | model.setHkId(device.getDeviceIndexCode()); |
| | | model.setName(device.getDeviceName()); |
| | | model.setHkStatus(Constants.ONE); |
| | | model.setType(Constants.THREE); |
| | | model.setChannelNo(device.getDeviceCode()); |
| | | model.setChannelInfo(device.getDeviceType()); |
| | | model.setType(Constants.FOUR); |
| | | model.setIp(device.getIp()); |
| | | model.setPort(device.getPort()); |
| | | // model.setChannelInfo(device.getDeviceType()); |
| | | model.setResourceType(device.getDeviceType()); |
| | | model.setStatus(Constants.ZERO); |
| | | model.setRemark(device.getDesc()); |
| | | model.setRegionName(device.getRegionIndexCode()); |
| | | if(device.getChannels()!=null &&device.getChannels().size()>0){ |
| | | model.setRegionPathName(device.getChannels().get(0).getRegionName()); |
| | | } |
| | | return model; |
| | | } |
| | | private Device initDoorDataByHkData(Device model, DoorsInfoResponse door, Date date, List<AcsDeviceInfoResponse> allHkList) { |