From 3827462b6cd19d1c8af6db5b6b78076d273842f8 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Sun, 17 Aug 2014 12:15:55 +0200 Subject: [PATCH] WeatherInformation WP8: improvements in WeatherData object --- .../WeatherInformation/Model/Services/ServiceParser.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); } } } -- 2.1.4