Ejemplo n.º 1
0
        public Response GetCurrentWeather(string q) //Example of using manually added classes in Models directory
        {
            IRestResponse restResponse = _singleClient.GetCurrentWeather(q);
            Response      response     = JsonConvert.DeserializeObject <Response>(restResponse.Content);

            return(response);
        }
        public GetCurrentWeatherResponse GetCurrentWeather(string q)
        {
            IRestResponse             restResponse = _weatherClient.GetCurrentWeather(q);
            GetCurrentWeatherResponse response     = JsonConvert.DeserializeObject <GetCurrentWeatherResponse>(restResponse.Content);

            return(response);
        }