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.
 
 
 

49 lines
1.9 KiB

  1. namespace JT808.DotNetty.Abstractions
  2. {
  3. public static class JT808NettyConstants
  4. {
  5. public const string SessionOnline= "JT808SessionOnline";
  6. public const string SessionOffline = "JT808SessionOffline";
  7. public const string MsgTopic = "jt808msgdefault";
  8. public const string MsgReplyTopic = "jt808msgreplydefault";
  9. public static class JT808WebApiRouteTable
  10. {
  11. public const string RouteTablePrefix = "/jt808api";
  12. public const string SessionPrefix = "Session";
  13. public const string TcpPrefix = "Tcp";
  14. public const string UdpPrefix = "Udp";
  15. /// <summary>
  16. /// 基于Tcp的包计数器
  17. /// </summary>
  18. public static string GetTcpAtomicCounter = $"{RouteTablePrefix}/{TcpPrefix}/GetAtomicCounter";
  19. /// <summary>
  20. /// 基于Tcp的会话服务集合
  21. /// </summary>
  22. public static string SessionTcpGetAll = $"{RouteTablePrefix}/{TcpPrefix}/{SessionPrefix}/GetAll";
  23. /// <summary>
  24. /// 会话服务-通过设备终端号移除对应会话
  25. /// </summary>
  26. public static string SessionRemoveByTerminalPhoneNo = $"{RouteTablePrefix}/{SessionPrefix}/RemoveByTerminalPhoneNo";
  27. /// <summary>
  28. /// 统一下发信息
  29. /// </summary>
  30. public static string UnificationSend = $"{RouteTablePrefix}/UnificationSend";
  31. /// <summary>
  32. /// 获取Udp包计数器
  33. /// </summary>
  34. public static string GetUdpAtomicCounter = $"{RouteTablePrefix}/{UdpPrefix}/GetAtomicCounter";
  35. /// <summary>
  36. /// 基于Udp的会话服务集合
  37. /// </summary>
  38. public static string SessionUdpGetAll = $"{RouteTablePrefix}/{UdpPrefix}/{SessionPrefix}/GetAll";
  39. }
  40. }
  41. }