forked from ddrilling/AsbCloudServer
42 lines
1.7 KiB
C#
42 lines
1.7 KiB
C#
using AsbCloudApp.Data.SAUB;
|
||
using AsbCloudApp.Requests;
|
||
using System.Collections.Generic;
|
||
using System.Threading;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace AsbCloudApp.Repositories
|
||
{
|
||
/// <summary>
|
||
/// репозиторий по работе с данными drill_test
|
||
/// </summary>
|
||
public interface IDrillTestRepository
|
||
{
|
||
/// <summary>
|
||
/// Получить данные drill_test в соответствии с параметрами запроса
|
||
/// </summary>
|
||
/// <param name="idTelemetry">ключ телеметрии</param>
|
||
/// <param name="request">запрос</param>
|
||
/// <param name="cancellationToken"></param>
|
||
/// <returns></returns>
|
||
Task<IEnumerable<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);
|
||
|
||
/// <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);
|
||
}
|
||
}
|