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.

26 regels
756 B

  1. using JT808.Protocol.Interfaces;
  2. namespace JT808.Protocol
  3. {
  4. /// <summary>
  5. /// JT808抽象数据体
  6. /// </summary>
  7. public abstract class JT808Bodies: IJT808Description
  8. {
  9. /// <summary>
  10. /// 跳过数据体序列化
  11. /// 默认不跳过
  12. /// 当数据体为空的时候,使用null作为空包感觉不适合,所以就算使用空包也需要new一下来表达意思。
  13. /// </summary>
  14. public virtual bool SkipSerialization { get; set; } = false;
  15. /// <summary>
  16. /// 消息Id
  17. /// </summary>
  18. public abstract ushort MsgId { get;}
  19. /// <summary>
  20. /// 消息描述
  21. /// </summary>
  22. public abstract string Description { get; }
  23. }
  24. }