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

28 lines
859 B
C#
Raw Normal View History

using AsbCloudApp.Data;
2021-11-22 11:30:08 +05:00
using System.Threading;
using System.Threading.Tasks;
2024-08-19 10:01:07 +05:00
namespace AsbCloudApp.Services;
/// <summary>
/// сервис определения временной зоны
/// </summary>
public interface ITimezoneService
2021-11-22 11:30:08 +05:00
{
2022-08-09 11:10:01 +05:00
/// <summary>
2024-08-19 10:01:07 +05:00
/// по координатам
2022-08-09 11:10:01 +05:00
/// </summary>
2024-08-19 10:01:07 +05:00
/// <param name="latitude"></param>
/// <param name="longitude"></param>
/// <returns></returns>
SimpleTimezoneDto? GetOrDefaultByCoordinates(double latitude, double longitude);
2022-08-09 11:10:01 +05:00
2024-08-19 10:01:07 +05:00
/// <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);
2021-11-22 11:30:08 +05:00
}