Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

34 linhas
1.1 KiB

  1. using JT808.Protocol;
  2. using JT808.Protocol.Enums;
  3. using JT808.Protocol.Interfaces;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Text;
  7. namespace JT808.Gateway.Client
  8. {
  9. public class JT808DeviceConfig
  10. {
  11. public JT808DeviceConfig(string terminalPhoneNo, string tcpHost,int tcpPort, JT808Version version= JT808Version.JTT2013)
  12. {
  13. TerminalPhoneNo = terminalPhoneNo;
  14. TcpHost = tcpHost;
  15. TcpPort = tcpPort;
  16. Version = version;
  17. }
  18. public JT808Version Version { get; private set; }
  19. public string TerminalPhoneNo { get; private set; }
  20. public string TcpHost { get; private set; }
  21. public int TcpPort { get; private set; }
  22. /// <summary>
  23. /// 心跳时间(秒)
  24. /// </summary>
  25. public int Heartbeat { get; set; } = 30;
  26. /// <summary>
  27. /// 自动重连 默认true
  28. /// </summary>
  29. public bool AutoReconnection { get; set; } = true;
  30. public IJT808MsgSNDistributed MsgSNDistributed { get; }
  31. }
  32. }