using AsbCloudApp.Data; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace AsbCloudApp.Services { public interface IWitsRecordRepository where TDto : ITelemetryData { Task SaveDataAsync(int idTelemetry, IEnumerable dtos, CancellationToken token); Task> GetAsync(int idTelemetry, DateTime begin, DateTime end, CancellationToken token); Task> GetLastAsync(int idTelemetry, CancellationToken token); Task<(DateTime begin, DateTime end, int count)?> GetStatAsync(int idTelemetry, CancellationToken token); } }