예제 #1
0
        private async Task TestWeatherAPI()
        {
            int[] results = await WeatherAPI.GetRealWeather();

            Console.WriteLine(results);
            Console.ReadLine();
        }
예제 #2
0
        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;
        }