2021-09-17 16:24:01 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
|
|
|
|
public interface ITelemetryDataService<TDto> where TDto : ITelemetryData
|
|
|
|
|
{
|
2021-11-18 11:24:21 +05:00
|
|
|
|
Task<IEnumerable<TDto>> GetAsync(int idWell,
|
|
|
|
|
DateTime dateBegin = default, double intervalSec = 600d,
|
2022-01-05 17:50:45 +05:00
|
|
|
|
int approxPointsCount = 1024, CancellationToken token = default);
|
|
|
|
|
|
2021-09-17 16:24:01 +05:00
|
|
|
|
Task<int> UpdateDataAsync(string uid, IEnumerable<TDto> dtos, CancellationToken token = default);
|
|
|
|
|
}
|
|
|
|
|
}
|