forked from ddrilling/AsbCloudServer
31 lines
1.3 KiB
C#
31 lines
1.3 KiB
C#
using AsbCloudApp.Data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface ITelemetryService
|
|
{
|
|
ITimeZoneService TimeZoneService { get; }
|
|
ITelemetryTracker TelemetryTracker { get; }
|
|
|
|
int? GetidWellByTelemetryUid(string uid);
|
|
int GetOrCreateTemetryIdByUid(string uid);
|
|
double GetTimezoneOffsetByTelemetryId(int idTelemetry);
|
|
Task UpdateInfoAsync(string uid, TelemetryInfoDto info, CancellationToken token);
|
|
Task<double?> GetTelemetryTimeZoneOffsetAsync(int idTelemetry, CancellationToken token);
|
|
Task<DatesRangeDto> FixDatesRangeByTimeZoneAsync(int telemetryId, DatesRangeDto result,
|
|
CancellationToken token);
|
|
Task UpdateTimeZoneAsync(string uid, TelemetryTimeZoneDto telemetryTimeZoneInfo, CancellationToken token);
|
|
int? GetIdTelemetryByIdWell(int idWell);
|
|
int Merge(IEnumerable<int> telemetryIds);
|
|
IEnumerable<(string Key, int[] Ids)> GetRedundentRemoteUids();
|
|
IEnumerable<TelemetryDto> GetTransmittingTelemetriesAsync(int idCompany);
|
|
DateTime GetLastTelemetryDate(string telemetryUid);
|
|
DateTime GetLastTelemetryDate(int telemetryId);
|
|
void SaveRequestDate(string uid, DateTime remoteDate);
|
|
}
|
|
}
|