您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

36 行
1.4 KiB

  1. using JT809.Protocol.Enums;
  2. using JT809.Protocol.Formatters;
  3. using JT809.Protocol.MessagePack;
  4. using JT809.Protocol.Extensions;
  5. using JT809.Protocol.Interfaces;
  6. namespace JT809.Protocol.SubMessageBody
  7. {
  8. /// <summary>
  9. /// 补报车辆行驶路线信息应答消息
  10. /// <para>子业务类型标识:UP_BASE_MSG_VEHICLE_ADDED_ACK</para>
  11. /// <para>描述:下级平台向上级平台补报车辆行驶路线信息</para>
  12. /// </summary>
  13. public class JT809_0x1600_0x1602:JT809SubBodies, IJT809MessagePackFormatter<JT809_0x1600_0x1602>, IJT809_2019_Version
  14. {
  15. public override ushort SubMsgId => JT809SubBusinessType.补报车辆行驶路线信息应答消息.ToUInt16Value();
  16. public override string Description => "补报车辆行驶路线信息应答消息";
  17. /// <summary>
  18. /// 路线信息,808-2019中0x8606规定的报文格式
  19. /// </summary>
  20. public byte[] DRVLine { get; set; }
  21. public JT809_0x1600_0x1602 Deserialize(ref JT809MessagePackReader reader, IJT809Config config)
  22. {
  23. var value = new JT809_0x1600_0x1602();
  24. value.DRVLine = reader.ReadArray(reader.ReadCurrentRemainContentLength()).ToArray();
  25. return value;
  26. }
  27. public void Serialize(ref JT809MessagePackWriter writer, JT809_0x1600_0x1602 value, IJT809Config config)
  28. {
  29. writer.WriteArray(value.DRVLine);
  30. }
  31. }
  32. }