DD.WellWorkover.Cloud/AsbCloudApp/Services/IWellService.cs

22 lines
896 B
C#
Raw Normal View History

using AsbCloudApp.Data;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
2021-12-21 11:52:53 +05:00
public interface IWellService: ICrudService<WellDto>
{
Task<IEnumerable<WellDto>> GetWellsByCompanyAsync(int idCompany, CancellationToken token);
Task<bool> IsCompanyInvolvedInWellAsync(int idCompany, int idWell, CancellationToken token);
2021-08-25 11:13:56 +05:00
Task<string> GetWellCaptionByIdAsync(int idWell, CancellationToken token);
2021-12-21 11:52:53 +05:00
//TODO: remove that
Task<IEnumerable<CompanyDto>> GetCompaniesAsync(int idWell, CancellationToken token);
bool IsCompanyInvolvedInWell(int idCompany, int idWell);
string GetStateText(int state);
DateTime GetLastTelemetryDate(int idWell);
Task<IEnumerable<int>> GetClusterWellsIdsAsync(int idWell, CancellationToken token);
}
}