Refactor and expose more information
This commit was merged in pull request #1.
This commit is contained in:
17
HomeApi/Integration/AuroraService.cs
Normal file
17
HomeApi/Integration/AuroraService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user