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.
 
 
 

38 lines
1.3 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, string localIPAddress=null,int localPort=0, JT808Version version= JT808Version.JTT2013)
  12. {
  13. TerminalPhoneNo = terminalPhoneNo;
  14. TcpHost = tcpHost;
  15. TcpPort = tcpPort;
  16. Version = version;
  17. LocalIPAddress = localIPAddress;
  18. LocalPort = localPort;
  19. }
  20. public JT808Version Version { get; private set; }
  21. public string TerminalPhoneNo { get; private set; }
  22. public string TcpHost { get; private set; }
  23. public int TcpPort { get; private set; }
  24. /// <summary>
  25. /// 心跳时间(秒)
  26. /// </summary>
  27. public int Heartbeat { get; set; } = 30;
  28. /// <summary>
  29. /// 自动重连 默认true
  30. /// </summary>
  31. public bool AutoReconnection { get; set; } = true;
  32. public IJT808MsgSNDistributed MsgSNDistributed { get; }
  33. public string LocalIPAddress { get; set; }
  34. public int LocalPort { get; set; }
  35. }
  36. }