選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

65 行
2.3 KiB

  1. using JT808.DotNetty.Abstractions.Dtos;
  2. using System.Collections.Generic;
  3. using WebApiClient;
  4. using WebApiClient.Attributes;
  5. namespace JT808.DotNetty.WebApiClientTool
  6. {
  7. public interface IJT808DotNettyWebApi : IHttpApi
  8. {
  9. #region 基于Tcp WebApi
  10. /// <summary>
  11. /// 会话服务集合
  12. /// </summary>
  13. /// <returns></returns>
  14. [HttpGet("Tcp/Session/GetAll")]
  15. ITask<JT808ResultDto<List<JT808TcpSessionInfoDto>>> GetTcpSessionAll();
  16. /// <summary>
  17. /// 会话服务-通过设备终端号移除对应会话
  18. /// </summary>
  19. /// <param name="terminalPhoneNo"></param>
  20. /// <returns></returns>
  21. [HttpPost("Tcp/Session/RemoveByTerminalPhoneNo")]
  22. ITask<JT808ResultDto<bool>> RemoveTcpSessionByTerminalPhoneNo([JsonContent] string terminalPhoneNo);
  23. /// <summary>
  24. /// 统一下发信息
  25. /// </summary>
  26. /// <param name="jT808UnificationSendRequestDto"></param>
  27. /// <returns></returns>
  28. [HttpPost("/UnificationSend")]
  29. ITask<JT808ResultDto<bool>> UnificationSend([JsonContent]JT808UnificationSendRequestDto jT808UnificationSendRequestDto);
  30. /// <summary>
  31. /// 获取Tcp包计数器
  32. /// </summary>
  33. /// <param name="uri"></param>
  34. /// <returns></returns>
  35. [HttpGet("Tcp/GetAtomicCounter")]
  36. ITask<JT808ResultDto<JT808AtomicCounterDto>> GetTcpAtomicCounter();
  37. #endregion
  38. #region 基于Udp WebApi
  39. /// <summary>
  40. /// 会话服务集合
  41. /// </summary>
  42. /// <param name="uri"></param>
  43. /// <returns></returns>
  44. [HttpGet("Udp/Session/GetAll")]
  45. ITask<JT808ResultDto<List<JT808UdpSessionInfoDto>>> GetUdpSessionAll();
  46. /// <summary>
  47. /// 会话服务-通过设备终端号移除对应会话
  48. /// </summary>
  49. /// <param name="terminalPhoneNo"></param>
  50. /// <returns></returns>
  51. [HttpPost("Udp/Session/RemoveByTerminalPhoneNo")]
  52. ITask<JT808ResultDto<bool>> RemoveUdpSessionByTerminalPhoneNo([JsonContent] string terminalPhoneNo);
  53. /// <summary>
  54. /// 获取Udp包计数器
  55. /// </summary>
  56. /// <returns></returns>
  57. [HttpGet("Udp/GetAtomicCounter")]
  58. ITask<JT808ResultDto<JT808AtomicCounterDto>> GetUdpAtomicCounter();
  59. #endregion
  60. }
  61. }