forked from ddrilling/AsbCloudServer
28 lines
859 B
C#
28 lines
859 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);
|
|
} |