private static Common.Weather.WeatherPeriodData ConvertToWeatherPeriodData(DailyWeather source) {
            var destination = new Common.Weather.WeatherPeriodData();

            if (source.WeatherConditions != null && source.WeatherConditions.Count > 0) {
                destination.Condition = ConvertToWeatherCondition(source.WeatherConditions[0].Id);
            }
            destination.Humidity = source.Humidity;
            destination.Pressure = source.Pressure;
            if (source.DailyTemperature != null) {
                if (source.DailyTemperature.Maximum.HasValue) {
                    destination.MaxTemperature = new Temperature() { Kelvin = source.DailyTemperature.Maximum.Value };
                }
                if (source.DailyTemperature.Minimum.HasValue) {
                    destination.MinTemperature = new Temperature() { Kelvin = source.DailyTemperature.Minimum.Value };
                }
            }

            //destination.MaxPrecipitation = ;
            //destination.PrecipitationType = ;

            destination.CloudCover = null;
            destination.DewPoint = null;
            destination.MaxTemperatureTime = null;
            destination.MinTemperatureTime = null;
            destination.Ozone = null;
            destination.PrecipitationProbability = null;
            destination.Visibility = null;
            destination.WindChill = null;
            destination.WindDirection = null;
            destination.WindSpeed = null;

            return destination;
        }
        private static Common.Weather.WeatherPeriodData ConvertToWeatherPeriodData(DailyWeather source) {
            var destination = new Common.Weather.WeatherPeriodData();

            destination.MaxTemperature = new Common.Weather.Temperature() { Celsius = source.MaxTemperature };
            destination.MaxTemperatureTime = UnixToDateTime(source.MaxTemperatureTime);
            destination.MinTemperature = new Common.Weather.Temperature() { Celsius = source.MinTemperature };
            destination.MinTemperatureTime = UnixToDateTime(source.MinTemperatureTime);
            destination.MaxPrecipitation = source.MaxPrecipitation;
            destination.PrecipitationProbability = source.PrecipitationProbability;
            destination.DewPoint = new Common.Weather.Temperature() { Celsius = source.DewPoint };
            destination.Pressure = source.Pressure;
            destination.WindDirection = source.WindDirection;
            destination.WindSpeed = source.WindSpeed;
            destination.Visibility = source.Visibility;
            if (source.Precipitation > 0) {
                destination.Precipitation = source.Precipitation;
            }
            destination.Ozone = source.Ozone;
            destination.Humidity = source.Humidity;
            destination.CloudCover = source.CloudCover;

            return destination;
        }