2023-10-17 11:24:52 +05:00
|
|
|
|
using AsbCloudApp.Data.SAUB;
|
2023-10-20 11:24:04 +05:00
|
|
|
|
using AsbCloudApp.Requests;
|
2023-10-17 11:24:52 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Repositories
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// репозиторий по работе с данными drill_test
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IDrillTestRepository
|
|
|
|
|
{
|
2023-10-20 11:24:04 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить данные drill_test в соответствии с параметрами запроса
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetry">ключ телеметрии</param>
|
|
|
|
|
/// <param name="request">запрос</param>
|
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<DrillTestDto[]> GetAllAsync(int idTelemetry, FileReportRequest request, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить запись drill_test
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetry">ключ телеметрии</param>
|
|
|
|
|
/// <param name="id">ключ записи drill_test</param>
|
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<DrillTestDto> GetAsync(int idTelemetry, int id, CancellationToken cancellationToken);
|
|
|
|
|
|
2023-10-17 11:24:52 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранить данные drill_test
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetry">ключ телеметрии</param>
|
|
|
|
|
/// <param name="dto">запись drill test</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<int> SaveDataAsync(int idTelemetry, DrillTestDto dto, CancellationToken token);
|
|
|
|
|
}
|
|
|
|
|
}
|