forked from ddrilling/AsbCloudServer
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using AsbCloudApp.Data.GTR;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Repositories
|
|
{
|
|
#nullable enable
|
|
/// <summary>
|
|
/// данные ГТИ
|
|
/// </summary>
|
|
public interface IGtrRepository
|
|
{
|
|
/// <summary>
|
|
/// добавить данные (для панели бурильщика)
|
|
/// </summary>
|
|
/// <param name="idTelemetry"></param>
|
|
/// <param name="dto"></param>
|
|
/// <param name="token"></param>
|
|
/// <returns></returns>
|
|
Task SaveDataAsync(int idTelemetry, WitsRecordDto dto, CancellationToken token);
|
|
|
|
/// <summary>
|
|
/// получить данные для клиента
|
|
/// </summary>
|
|
/// <param name="idWell"></param>
|
|
/// <param name="dateBegin"></param>
|
|
/// <param name="intervalSec"></param>
|
|
/// <param name="approxPointsCount">кол-во элементов до которых эти данные прореживаются</param>
|
|
/// <param name="token"></param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<WitsRecordDto>> GetAsync(int idWell,
|
|
DateTime dateBegin = default, double intervalSec = 600d,
|
|
int approxPointsCount = 1024, CancellationToken token = default);
|
|
|
|
|
|
}
|
|
#nullable disable
|
|
}
|