DD.WellWorkover.Cloud/AsbCloudApp/Repositories/ITelemetryWirelineRunOutRepository.cs

39 lines
1.2 KiB
C#
Raw Normal View History

using AsbCloudApp.Data;
using AsbCloudApp.Data.SAUB;
2023-01-11 13:51:11 +05:00
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
2024-08-19 10:01:07 +05:00
namespace AsbCloudApp.Repositories;
/// <summary>
/// Наработка талевого каната
/// </summary>
public interface ITelemetryWirelineRunOutRepository
{
/// <summary>
2024-08-19 10:01:07 +05:00
/// Принимает данные от панели
/// </summary>
2024-08-19 10:01:07 +05:00
/// <param name="uid"></param>
/// <param name="dto"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<int> AddOrUpdateAsync(string uid, TelemetryWirelineRunOutBaseDto dto, CancellationToken token);
2024-08-19 10:01:07 +05:00
/// <summary>
/// Выдает данные по скважине
/// </summary>
/// <param name="idWell"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<TelemetryWirelineRunOutDto?> GetOrDefaultAsync(int idWell, CancellationToken token);
2023-01-11 13:51:11 +05:00
2024-08-19 10:01:07 +05:00
/// <summary>
/// Возвращает данные по всем скважинам
/// </summary>
/// <param name="idCompany"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<IEnumerable<TelemetryWirelineRunOutDto>> GetAllAsync(int idCompany, CancellationToken token);
}