forked from ddrilling/AsbCloudServer
35cd538b1d
Add generic TelemetryDataController; Add TelemetryDataSpin and model; Add migration;
20 lines
652 B
C#
20 lines
652 B
C#
using AsbCloudApp.Data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface IDataService
|
|
{
|
|
Task<IEnumerable<TelemetryDataSaubDto>> GetAsync(int idWell, DateTime dateBegin = default,
|
|
double intervalSec = 600d, int approxPointsCount = 1024,
|
|
CancellationToken token = default);
|
|
|
|
Task<int> UpdateDataAsync(string uid, IEnumerable<TelemetryDataSaubDto> dtos,
|
|
CancellationToken token);
|
|
Task<DatesRangeDto> GetDataDatesRangeAsync(int idWell,
|
|
CancellationToken token);
|
|
}
|
|
} |