Refactor and expose more information

This commit was merged in pull request #1.
This commit is contained in:
2025-07-14 20:40:41 +02:00
committed by GitHub
parent 1e71c06fc3
commit 9cfbdc21d0
20 changed files with 409 additions and 162 deletions

View File

@@ -0,0 +1,17 @@
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);
}
}