Beispiel #1
0
        private async Task TestWeatherAPI()
        {
            int[] results = await RealWeatherCall.GetRealWeather();

            Console.WriteLine(results);
            Console.ReadLine();
        }
Beispiel #2
0
        public async void SetRealWeather()
        {
            int[] results = await RealWeatherCall.GetRealWeather();

            int cloudPercentage = results[0];

            temperature = ConvertKelvinToFahrenheit(results[1]);
            int humidity = results[2];

            SetRealWeatherEffect(cloudPercentage, humidity);
        }