forked from ddrilling/AsbCloudServer
18 lines
710 B
C#
18 lines
710 B
C#
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
|
|
{
|
|
Task<IEnumerable<TDto>> GetAsync(int idWell,
|
|
DateTime dateBegin = default, double intervalSec = 600d,
|
|
int approxPointsCount = 1024, bool isUtc = false, CancellationToken token = default);
|
|
Task<DatesRangeDto> GetDataDatesRangeAsync(int idWell, bool isUtc = false,
|
|
CancellationToken token = default);
|
|
Task<int> UpdateDataAsync(string uid, IEnumerable<TDto> dtos, CancellationToken token = default);
|
|
}
|
|
} |