using Persistence.Models; using Refit; namespace Persistence.Client.Clients.Interfaces.Refit; public interface IRefitTimeSeriesClient : IDisposable where TDto : class, new() { private const string BaseRoute = "/api/dataSaub"; [Post($"{BaseRoute}")] Task> AddRange(IEnumerable dtos, CancellationToken token); [Get($"{BaseRoute}")] Task>> Get(DateTimeOffset dateBegin, DateTimeOffset dateEnd, CancellationToken token); [Get($"{BaseRoute}/resampled")] Task>> GetResampledData(DateTimeOffset dateBegin, double intervalSec = 600d, int approxPointsCount = 1024, CancellationToken token = default); [Get($"{BaseRoute}/datesRange")] Task> GetDatesRange(CancellationToken token); }