using JT809.Protocol.Enums; using JT809.Protocol.Formatters; using JT809.Protocol.MessagePack; using JT809.Protocol.Extensions; using JT809.Protocol.Interfaces; namespace JT809.Protocol.SubMessageBody { /// /// 补报车辆行驶路线信息应答消息 /// 子业务类型标识:UP_BASE_MSG_VEHICLE_ADDED_ACK /// 描述:下级平台向上级平台补报车辆行驶路线信息 /// public class JT809_0x1600_0x1602:JT809SubBodies, IJT809MessagePackFormatter, IJT809_2019_Version { public override ushort SubMsgId => JT809SubBusinessType.补报车辆行驶路线信息应答消息.ToUInt16Value(); public override string Description => "补报车辆行驶路线信息应答消息"; /// /// 路线信息,808-2019中0x8606规定的报文格式 /// public byte[] DRVLine { get; set; } public JT809_0x1600_0x1602 Deserialize(ref JT809MessagePackReader reader, IJT809Config config) { var value = new JT809_0x1600_0x1602(); value.DRVLine = reader.ReadArray(reader.ReadCurrentRemainContentLength()).ToArray(); return value; } public void Serialize(ref JT809MessagePackWriter writer, JT809_0x1600_0x1602 value, IJT809Config config) { writer.WriteArray(value.DRVLine); } } }