コード例 #1
0
        private async void GetCity()
        {
            var response = await AccuWeatherApi.GetCityAutoComplete(Query);

            Cities.Clear();

            foreach (var city in response)
            {
                Cities.Add(city);
            }
        }
コード例 #2
0
        public async void GetWeather()
        {
            var response = await AccuWeatherApi.GetWeatherAsync(SelectedCity.Key);

            Weather.DailyForecasts = response.DailyForecasts;
        }