2021-04-07 18:01:56 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2021-10-15 15:35:18 +05:00
|
|
|
|
using System;
|
2021-09-29 10:12:54 +05:00
|
|
|
|
using System.Collections.Generic;
|
2021-10-15 12:24:04 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2021-04-07 18:01:56 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
|
|
|
|
public interface ITelemetryService
|
|
|
|
|
{
|
2021-11-22 11:30:08 +05:00
|
|
|
|
ITimeZoneService TimeZoneService { get; }
|
2021-11-22 16:02:15 +05:00
|
|
|
|
ITelemetryTracker TelemetryTracker { get; }
|
2021-11-22 11:30:08 +05:00
|
|
|
|
|
2021-07-27 14:43:30 +05:00
|
|
|
|
int? GetidWellByTelemetryUid(string uid);
|
2021-04-23 10:21:25 +05:00
|
|
|
|
int GetOrCreateTemetryIdByUid(string uid);
|
2021-06-25 15:10:05 +05:00
|
|
|
|
double GetTimezoneOffsetByTelemetryId(int idTelemetry);
|
2021-11-16 13:14:31 +05:00
|
|
|
|
Task UpdateInfoAsync(string uid, TelemetryInfoDto info, CancellationToken token);
|
2021-11-18 14:25:11 +05:00
|
|
|
|
Task<double?> GetTelemetryTimeZoneOffsetAsync(int idTelemetry, CancellationToken token);
|
2021-11-18 12:03:59 +05:00
|
|
|
|
Task<DatesRangeDto> FixDatesRangeByTimeZoneAsync(int telemetryId, DatesRangeDto result,
|
2021-11-22 11:30:08 +05:00
|
|
|
|
CancellationToken token);
|
2021-11-16 13:14:31 +05:00
|
|
|
|
Task UpdateTimeZoneAsync(string uid, TelemetryTimeZoneDto telemetryTimeZoneInfo, CancellationToken token);
|
2021-08-09 14:01:57 +05:00
|
|
|
|
int? GetIdTelemetryByIdWell(int idWell);
|
2021-09-29 10:12:54 +05:00
|
|
|
|
int Merge(IEnumerable<int> telemetryIds);
|
|
|
|
|
IEnumerable<(string Key, int[] Ids)> GetRedundentRemoteUids();
|
2021-10-21 15:57:20 +05:00
|
|
|
|
IEnumerable<TelemetryDto> GetTransmittingTelemetriesAsync(int idCompany);
|
2021-10-20 12:52:31 +05:00
|
|
|
|
DateTime GetLastTelemetryDate(string telemetryUid);
|
|
|
|
|
DateTime GetLastTelemetryDate(int telemetryId);
|
2021-10-28 10:56:18 +05:00
|
|
|
|
void SaveRequestDate(string uid, DateTime remoteDate);
|
2021-04-07 18:01:56 +05:00
|
|
|
|
}
|
|
|
|
|
}
|