Ejemplo n.º 1
0
        public WindModel GetWeatherWind(string cityName = "Kazan")
        {
            WeatherClient client       = new WeatherClient(m_accessKey);
            var           resourceData = client.GetCurrentWeatherSourceDataAsync <OpenWeatherMapModel>(cityName, "en").Result;
            var           resultData   = client.GetCurrentWindResultDataAsync(_logger, cityName, resourceData);

            return(resultData.Result);
        }