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.
 
 
 

30 lines
693 B

  1. using JT808.Protocol;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Reflection;
  5. namespace JT808.Gateway.Client.Metadata
  6. {
  7. public class JT808ClientRequest
  8. {
  9. public JT808Package Package { get; }
  10. public byte[] HexData { get; }
  11. /// <summary>
  12. /// 根据实际情况适当调整包的大小
  13. /// </summary>
  14. public int MinBufferSize { get;}
  15. public JT808ClientRequest(JT808Package package,int minBufferSize=1024)
  16. {
  17. Package = package;
  18. MinBufferSize = minBufferSize;
  19. }
  20. public JT808ClientRequest(byte[] hexData)
  21. {
  22. HexData = hexData;
  23. }
  24. }
  25. }