ViewModel code
[ObservableProperty]
public string currentWeather;
public YourCurrentLocationForecast(WeatherService weatherService, IConnectivity connectivity, IGeolocation geolocation)
{
this.weatherService = weatherService;
this.connectivity = connectivity;
this.geolocation = geolocation;
title = "Weather";
CurrentWeather = "night_raining.json";
TestingTheDailyStatMethod();
}
ViewModel code
[ObservableProperty]
public string currentWeather;
public YourCurrentLocationForecast(WeatherService weatherService, IConnectivity connectivity, IGeolocation geolocation)
{
this.weatherService = weatherService;
this.connectivity = connectivity;
this.geolocation = geolocation;
title = "Weather";
CurrentWeather = "night_raining.json";
TestingTheDailyStatMethod();
}