17 lines
467 B
C#
17 lines
467 B
C#
using HomeApi.Integration.Client;
|
|
using HomeApi.Models.Response;
|
|
|
|
namespace HomeApi.Integration;
|
|
|
|
public interface IAuroraService
|
|
{
|
|
Task<AuroraForecastApiResponse> GetAuroraForecastAsync(string lat, string lon);
|
|
}
|
|
|
|
public class AuroraService(IAuroraClient auroraApi) : IAuroraService
|
|
{
|
|
public Task<AuroraForecastApiResponse> GetAuroraForecastAsync(string lat, string lon)
|
|
{
|
|
return auroraApi.GetForecastAsync(latitude: lat, longitude: lon);
|
|
}
|
|
} |