GetWeatherUseCase

class GetWeatherUseCase(nowcastRepository: NowcastRepository, locationForecastRepository: LocationForecastRepository)

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)

Functions

Link copied to clipboard
suspend fun getWeather(    latLng: LatLng,     timeDelta: Int = 0,     context: Context): WeatherDataPoint

Get the weather for the current location.