2022-04-08 13:10:06 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2022-04-01 17:55:44 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2022-04-08 13:10:06 +05:00
|
|
|
|
public interface IWitsRecordRepository<TDto>
|
2022-04-11 18:00:34 +05:00
|
|
|
|
where TDto : ITelemetryData
|
2022-04-01 17:55:44 +05:00
|
|
|
|
{
|
2022-04-08 13:10:06 +05:00
|
|
|
|
Task SaveDataAsync(int idTelemetry, IEnumerable<TDto> dtos, CancellationToken token);
|
|
|
|
|
Task<IEnumerable<TDto>> GetAsync(int idTelemetry, DateTime begin, DateTime end, CancellationToken token);
|
2022-04-15 14:45:49 +05:00
|
|
|
|
Task<IEnumerable<TDto>> GetLastAsync(int idTelemetry, CancellationToken token);
|
2022-04-08 13:10:06 +05:00
|
|
|
|
Task<(DateTime begin, DateTime end, int count)?> GetStatAsync(int idTelemetry, CancellationToken token);
|
2022-04-01 17:55:44 +05:00
|
|
|
|
}
|
|
|
|
|
}
|