2022-01-05 17:50:45 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2021-11-22 11:30:08 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// сервис определения временной зоны
|
|
|
|
|
/// </summary>
|
2022-01-05 17:50:45 +05:00
|
|
|
|
public interface ITimezoneService
|
2021-11-22 11:30:08 +05:00
|
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// по координатам
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="latitude"></param>
|
|
|
|
|
/// <param name="longitude"></param>
|
|
|
|
|
/// <returns></returns>
|
2023-04-18 16:16:11 +05:00
|
|
|
|
SimpleTimezoneDto? GetOrDefaultByCoordinates(double latitude, double longitude);
|
2022-08-09 11:10:01 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// по координатам
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="latitude"></param>
|
|
|
|
|
/// <param name="longitude"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2023-04-18 16:16:11 +05:00
|
|
|
|
Task<Data.SimpleTimezoneDto?> GetOrDefaultByCoordinatesAsync(double latitude, double longitude, CancellationToken token);
|
2021-11-22 11:30:08 +05:00
|
|
|
|
}
|
|
|
|
|
}
|