using JT808.DotNetty.Abstractions.Dtos;
using System.Collections.Generic;
using WebApiClient;
using WebApiClient.Attributes;
namespace JT808.DotNetty.WebApiClientTool
{
public interface IJT808DotNettyWebApi : IHttpApi
{
#region 基于Tcp WebApi
///
/// 会话服务集合
///
///
[HttpGet("Tcp/Session/GetAll")]
ITask>> GetTcpSessionAll();
///
/// 会话服务-通过设备终端号移除对应会话
///
///
///
[HttpPost("Tcp/Session/RemoveByTerminalPhoneNo")]
ITask> RemoveTcpSessionByTerminalPhoneNo([JsonContent] string terminalPhoneNo);
///
/// 统一下发信息
///
///
///
[HttpPost("/UnificationSend")]
ITask> UnificationSend([JsonContent]JT808UnificationSendRequestDto jT808UnificationSendRequestDto);
///
/// 获取Tcp包计数器
///
///
///
[HttpGet("Tcp/GetAtomicCounter")]
ITask> GetTcpAtomicCounter();
#endregion
#region 基于Udp WebApi
///
/// 会话服务集合
///
///
///
[HttpGet("Udp/Session/GetAll")]
ITask>> GetUdpSessionAll();
///
/// 会话服务-通过设备终端号移除对应会话
///
///
///
[HttpPost("Udp/Session/RemoveByTerminalPhoneNo")]
ITask> RemoveUdpSessionByTerminalPhoneNo([JsonContent] string terminalPhoneNo);
///
/// 获取Udp包计数器
///
///
[HttpGet("Udp/GetAtomicCounter")]
ITask> GetUdpAtomicCounter();
#endregion
}
}