No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

32 líneas
1.2 KiB

  1. using JT808.Protocol.Extensions.JT1078.MessageBody;
  2. using JT808.Protocol.Formatters;
  3. using JT808.Protocol.Interfaces;
  4. using JT808.Protocol.MessagePack;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Text;
  8. namespace JT808.Protocol.Extensions.JT1078.Formatters
  9. {
  10. public class JT808_0x9202_Formatter : IJT808MessagePackFormatter<JT808_0x9202>
  11. {
  12. public JT808_0x9202 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
  13. {
  14. JT808_0x9202 jT808_0x9202 = new JT808_0x9202();
  15. jT808_0x9202.AVChannelNo = reader.ReadByte();
  16. jT808_0x9202.PlayBackControl = reader.ReadByte();
  17. jT808_0x9202.FastForwardOrFastRewindMultiples = reader.ReadByte();
  18. jT808_0x9202.DragPlaybackPosition = reader.ReadDateTime6();
  19. return jT808_0x9202;
  20. }
  21. public void Serialize(ref JT808MessagePackWriter writer, JT808_0x9202 value, IJT808Config config)
  22. {
  23. writer.WriteByte(value.AVChannelNo);
  24. writer.WriteByte(value.PlayBackControl);
  25. writer.WriteByte(value.FastForwardOrFastRewindMultiples);
  26. writer.WriteDateTime6(value.DragPlaybackPosition);
  27. }
  28. }
  29. }