31 lines
1001 B
C#
31 lines
1001 B
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Model.Model;
|
|
|
|
namespace DeviceCommand.Base
|
|
{
|
|
/// <summary>
|
|
/// Enova3 上位机数据上报核心接口
|
|
/// </summary>
|
|
public interface IEnovaDataReporter
|
|
{
|
|
/// <summary>
|
|
/// 客户平台接收数据的目标 HTTP URL
|
|
/// </summary>
|
|
string TargetUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// HTTP 请求超时时间(毫秒)
|
|
/// </summary>
|
|
int TimeoutMilliseconds { get; set; }
|
|
|
|
/// <summary>
|
|
/// 异步推送通道的实时状态数据到客户平台
|
|
/// </summary>
|
|
/// <param name="dataList">包含各通道状态的采集数据集合</param>
|
|
/// <param name="ct">取消令牌</param>
|
|
/// <returns>平台服务器的响应状态</returns>
|
|
Task<EnovaReportResponse> ReportChannelStateAsync(List<EnovaChannelReportData> dataList, CancellationToken ct = default);
|
|
}
|
|
} |