2021-04-07 18:01:56 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2021-08-11 16:54:42 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2021-04-07 18:01:56 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2021-09-27 16:48:24 +05:00
|
|
|
|
|
|
|
|
|
[Obsolete]
|
2021-04-23 10:21:25 +05:00
|
|
|
|
public interface IDataService
|
2021-04-07 18:01:56 +05:00
|
|
|
|
{
|
2021-09-14 17:17:33 +05:00
|
|
|
|
Task<IEnumerable<TelemetryDataSaubDto>> GetAsync(int idWell, DateTime dateBegin = default,
|
2021-08-11 16:54:42 +05:00
|
|
|
|
double intervalSec = 600d, int approxPointsCount = 1024,
|
|
|
|
|
CancellationToken token = default);
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
2021-09-14 17:17:33 +05:00
|
|
|
|
Task<int> UpdateDataAsync(string uid, IEnumerable<TelemetryDataSaubDto> dtos,
|
2021-08-11 16:54:42 +05:00
|
|
|
|
CancellationToken token);
|
|
|
|
|
Task<DatesRangeDto> GetDataDatesRangeAsync(int idWell,
|
|
|
|
|
CancellationToken token);
|
2021-04-07 18:01:56 +05:00
|
|
|
|
}
|
|
|
|
|
}
|