| | |
| | | * 解析报文 |
| | | */ |
| | | public UPRealvideoMsgEndAck decode(RealVideoMsg realVideoMsg) { |
| | | byte[] data = realVideoMsg.getData(); |
| | | ByteBuf byteBuf = Unpooled.wrappedBuffer(data); |
| | | this.vehicleNo = realVideoMsg.getVehicleNo(); |
| | | this.vehicleColor = realVideoMsg.getVehicleColor(); |
| | | this.dataType = realVideoMsg.getDataType(); |
| | | this.dataLength = realVideoMsg.getDataLength(); |
| | | |
| | | //报警处理结果 |
| | | this.result = byteBuf.readByte(); |
| | | try { |
| | | byte[] data = realVideoMsg.getData(); |
| | | ByteBuf byteBuf = Unpooled.wrappedBuffer(data); |
| | | this.vehicleNo = realVideoMsg.getVehicleNo(); |
| | | this.vehicleColor = realVideoMsg.getVehicleColor(); |
| | | this.dataType = realVideoMsg.getDataType(); |
| | | this.dataLength = realVideoMsg.getDataLength(); |
| | | |
| | | //报警处理结果 |
| | | this.result = byteBuf.readByte(); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | return this; |
| | | } |
| | | } |