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.

20 rivejä
716 B

  1. using JT809.Protocol.Enums;
  2. using JT809.Protocol.Interfaces;
  3. namespace JT809.Protocol
  4. {
  5. public abstract class JT809Bodies: IJT809Description
  6. {
  7. /// <summary>
  8. /// 跳过数据体序列化
  9. /// 默认不跳过
  10. /// 当数据体为空的时候,使用null作为空包感觉不适合,所以就算使用空包也需要new一下来表达意思。
  11. /// </summary>
  12. public virtual bool SkipSerialization { get; set; } = false;
  13. public virtual JT809Version Version { get;} = JT809Version.JTT2011;
  14. public abstract ushort MsgId { get; }
  15. public abstract JT809_LinkType LinkType { get; }
  16. public abstract string Description { get; }
  17. }
  18. }