You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

  1. using JT809.Protocol.Enums;
  2. using JT809.Protocol.Formatters;
  3. using JT809.Protocol.MessagePack;
  4. using JT809.Protocol.Extensions;
  5. namespace JT809.Protocol.SubMessageBody
  6. {
  7. /// <summary>
  8. /// 补发车辆定位信息应答
  9. /// <para>子业务类型标识:DOWN_EXG_MSG_APPLY_FOR_MONITOR_END_ACK</para>
  10. /// </summary>
  11. public class JT809_0x9200_0x9209: JT809SubBodies, IJT809MessagePackFormatter<JT809_0x9200_0x9209>
  12. {
  13. public override ushort SubMsgId => JT809SubBusinessType.补发车辆定位信息应答.ToUInt16Value();
  14. public override string Description => "补发车辆定位信息应答";
  15. /// <summary>
  16. /// 返回结果
  17. /// </summary>
  18. public JT809_0x9209_Result Result { get; set; }
  19. public JT809_0x9200_0x9209 Deserialize(ref JT809MessagePackReader reader, IJT809Config config)
  20. {
  21. JT809_0x9200_0x9209 jT809_0X1200_0x9209 = new JT809_0x9200_0x9209();
  22. jT809_0X1200_0x9209.Result = (JT809_0x9209_Result)reader.ReadByte();
  23. return jT809_0X1200_0x9209;
  24. }
  25. public void Serialize(ref JT809MessagePackWriter writer, JT809_0x9200_0x9209 value, IJT809Config config)
  26. {
  27. writer.WriteByte((byte)value.Result);
  28. }
  29. }
  30. }