From: gu.martinm@gmail.com Date: Sun, 17 Aug 2014 10:15:55 +0000 (+0200) Subject: WeatherInformation WP8: improvements in WeatherData object X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=3827462b6cd19d1c8af6db5b6b78076d273842f8;p=CSharpForFun%2F.git WeatherInformation WP8: improvements in WeatherData object --- diff --git a/WindowsPhone/WeatherInformation/WeatherInformation/Model/Services/ServiceParser.cs b/WindowsPhone/WeatherInformation/WeatherInformation/Model/Services/ServiceParser.cs index 29570a3..7dc52c5 100644 --- a/WindowsPhone/WeatherInformation/WeatherInformation/Model/Services/ServiceParser.cs +++ b/WindowsPhone/WeatherInformation/WeatherInformation/Model/Services/ServiceParser.cs @@ -29,20 +29,20 @@ namespace WeatherInformation.Model.Services } public WeatherData WeatherDataParser( - string JSONForecast, string JSONCurrent, string city, string country) + string jsonForecast, string jsonCurrent, string city, string country) { - if (string.IsNullOrEmpty(JSONForecast)) + if (string.IsNullOrEmpty(jsonForecast)) { throw new ArgumentException("Missing argument", "JSONForecast"); } - if (string.IsNullOrEmpty(JSONCurrent)) + if (string.IsNullOrEmpty(jsonCurrent)) { throw new ArgumentException("Missing argument", "JSONCurrent"); } - var forecast = GetForecastWeather(JSONForecast); - var current = GetCurrentWeather(JSONCurrent); - return new WeatherData(forecast, JSONForecast, current, JSONCurrent, city, country); + var forecast = GetForecastWeather(jsonForecast); + var current = GetCurrentWeather(jsonCurrent); + return new WeatherData(forecast, jsonForecast, current, jsonCurrent, city, country); } } }