DD.WellWorkover.Cloud/AsbCloudApp/Services/ITimeZoneService.cs
2023-04-18 16:16:11 +05:00

29 lines
948 B
C#

using AsbCloudApp.Data;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
/// <summary>
/// сервис определения временной зоны
/// </summary>
public interface ITimezoneService
{
/// <summary>
/// по координатам
/// </summary>
/// <param name="latitude"></param>
/// <param name="longitude"></param>
/// <returns></returns>
SimpleTimezoneDto? GetOrDefaultByCoordinates(double latitude, double longitude);
/// <summary>
/// по координатам
/// </summary>
/// <param name="latitude"></param>
/// <param name="longitude"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<Data.SimpleTimezoneDto?> GetOrDefaultByCoordinatesAsync(double latitude, double longitude, CancellationToken token);
}
}