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

31 lines
1.3 KiB
C#
Raw Normal View History

2021-04-07 18:01:56 +05:00
using AsbCloudApp.Data;
using System;
2021-09-29 10:12:54 +05:00
using System.Collections.Generic;
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; }
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);
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,
2021-11-22 11:30:08 +05:00
CancellationToken token);
Task UpdateTimeZoneAsync(string uid, TelemetryTimeZoneDto telemetryTimeZoneInfo, CancellationToken token);
int? GetIdTelemetryByIdWell(int idWell);
2021-09-29 10:12:54 +05:00
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);
2021-04-07 18:01:56 +05:00
}
}