36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using gehGassi.Dto.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using gehGassiApp.Domain.Common;
|
|
|
|
namespace gehGassiApp.Core.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// Schnittstellenbeschreibung für einen Hilfs-Service bei der Lokalisierung eines Benutzers
|
|
/// </summary>
|
|
public interface ILocationService
|
|
{
|
|
/// <summary>
|
|
/// Holen der Lat und Lng sowie, wenn möglich Land und Bundesland
|
|
/// </summary>
|
|
/// <returns>Aktuelle Position des Benutzers, oder null wenn nicht möglich</returns>
|
|
Task<LocationDto> GetLocationAsync();
|
|
|
|
/// <summary>
|
|
/// Gibt Lat und Long anhand einer Adresse zurück, wenn möglich
|
|
/// </summary>
|
|
/// <param name="address">Adresse</param>
|
|
/// <returns>Location mit Lat und Lng oder null wenn nicht möglich</returns>
|
|
Task<Location> GetLocationByAddressAsync(Address address);
|
|
|
|
/// <summary>
|
|
/// Gibt, wenn möglich, die aktuelle Adresse zu einer Position zurück
|
|
/// </summary>
|
|
/// <returns>Adresse oder null, wenn keine gefunden</returns>
|
|
Task<Address> GetAddressByCurrentLocationAsync();
|
|
}
|
|
}
|