public void onTemperatureresult(WeatherArgs args) { if (args != null && args._weatherInfo != null && args._weatherInfo?.TemperatureInfo != null) { result.Text = "The weather is " + args._weatherInfo?.Weather[0]?.Description + " and the Temperature is " + args._weatherInfo?.TemperatureInfo?.Temp + " Kelvin"; } else { Snackbar.Make(result, "Sorry there is an error.Please try again", Snackbar.LengthLong) .SetAction("Action", (Android.Views.View.IOnClickListener)null).Show(); } progress.Visibility = ViewStates.Invisible; mainViewModel.onWeatherEventHandler -= onTemperatureresult; }
public void WeatherChanged(object sender, WeatherArgs info) => Console.WriteLine("CurrentConditions");
internal override void ExecuteChanges(object sender, WeatherArgs e) { Console.WriteLine($"CurrentConditionsReport: {e.Temperature}"); }
internal override void ExecuteChanges(object sender, WeatherArgs e) { Console.WriteLine($"StatisticReport: {e.Humidity}"); }
public void WeatherChanged(object sender, WeatherArgs info) => Console.WriteLine("Statistic");
internal override void ExecuteChanges(object sender, WeatherArgs e) { Console.WriteLine($"ForeCastReport: {e.Pressure}"); }
public void WeatherHasChanged(MeteorologicCentrum m, WeatherArgs warg) { weather = warg.weather; }
public void WeatherChanged(object sender, WeatherArgs info) => Console.WriteLine("ForeCast");
protected virtual void OnWeatherChange(object sender, WeatherArgs eventArgs) { WeatherChanged?.Invoke(sender, eventArgs); }