private async Task TestWeatherAPI() { int[] results = await WeatherAPI.GetRealWeather(); Console.WriteLine(results); Console.ReadLine(); }
public async void SetRealWeatherAsync() { int[] results = await WeatherAPI.GetRealWeather(); int cloudPercentage = results[0]; this.Temperature = ConvertKelvinToFahrenheit(results[1]); int humidity = results[2]; this.WeatherEffect = SetRealWeatherEffect(cloudPercentage, humidity); DisplayWeather(); //return true; }