2023-04-04 21:21:06 +05:00
|
|
|
|
using AsbCloudApp.Data.GTR;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2023-04-07 05:32:03 +05:00
|
|
|
|
|
2023-04-07 04:51:30 +05:00
|
|
|
|
namespace AsbCloudApp.Repositories
|
2023-04-04 21:21:06 +05:00
|
|
|
|
{
|
|
|
|
|
#nullable enable
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// данные ГТИ
|
|
|
|
|
/// </summary>
|
2023-04-07 05:32:03 +05:00
|
|
|
|
public interface IGtrRepository<T>
|
2023-04-04 21:21:06 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2023-04-06 04:02:47 +05:00
|
|
|
|
/// добавить данные (для панели бурильщика)
|
2023-04-04 21:21:06 +05:00
|
|
|
|
/// </summary>
|
2023-04-06 04:02:47 +05:00
|
|
|
|
/// <param name="idTelemetry"></param>
|
|
|
|
|
/// <param name="dto"></param>
|
2023-04-04 21:21:06 +05:00
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2023-04-06 04:02:47 +05:00
|
|
|
|
Task SaveDataAsync(int idTelemetry, WitsRecordDto dto, CancellationToken token);
|
2023-04-07 04:51:30 +05:00
|
|
|
|
|
2023-04-04 21:21:06 +05:00
|
|
|
|
/// <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
|
|
|
|
|
}
|