forked from ddrilling/AsbCloudServer
27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
using AsbCloudApp.Data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface IWellService : ICrudService<WellDto>
|
|
{
|
|
ITelemetryService TelemetryService { get; }
|
|
|
|
Task<IEnumerable<WellDto>> GetWellsByCompanyAsync(int idCompany, CancellationToken token);
|
|
Task<bool> IsCompanyInvolvedInWellAsync(int idCompany, int idWell, CancellationToken token);
|
|
Task<string> GetWellCaptionByIdAsync(int idWell, CancellationToken token);
|
|
//TODO: remove that
|
|
Task<IEnumerable<CompanyDto>> GetCompaniesAsync(int idWell, CancellationToken token);
|
|
bool IsCompanyInvolvedInWell(int idCompany, int idWell);
|
|
string GetStateText(int state);
|
|
DateTimeOffset GetLastTelemetryDate(int idWell);
|
|
Task<IEnumerable<int>> GetClusterWellsIdsAsync(int idWell, CancellationToken token);
|
|
SimpleTimezoneDto GetTimezone(int idWell);
|
|
DatesRangeDto GetDatesRange(int idWell);
|
|
Task EnshureTimezonesIsSetAsync(CancellationToken token);
|
|
}
|
|
}
|