Get Weather Use Case
class GetWeatherUseCase(nowcastRepository: NowcastRepository, locationForecastRepository: LocationForecastRepository)
Content copied to clipboard
Domain layer to get weather using different underlying repositories. E.g. nowcast for now, auto switch to locationforecast for later.
Constructors
Link copied to clipboard
fun GetWeatherUseCase(nowcastRepository: NowcastRepository, locationForecastRepository: LocationForecastRepository)
Content copied to clipboard
Functions
Link copied to clipboard
suspend fun getWeather( latLng: LatLng, timeDelta: Int = 0, context: Context): WeatherDataPoint
Content copied to clipboard
Get the weather for the current location.