Beispiel #1
0
        public void ChangeUnits(Units units)
        {
            Units = units;

            DailyData.ForEach(x => x.ChangeUnits(Units));
            HourlyData.ForEach(x => x.ChangeUnits(Units));
        }
Beispiel #2
0
        public void ChangeLanguage(Language language)
        {
            Language = language;

            DailyData.ForEach(x => x.ChangeLanguage(Language));
            HourlyData.ForEach(x => x.ChangeLanguage(Language));
        }
Beispiel #3
0
        public IFourDaysData Clone()
        {
            var newHourlyData = new List <IHourlyData>();

            HourlyData.ForEach(item =>
            {
                newHourlyData.Add(item.Clone());
            });

            var newDailyData = new List <IDailyData>();

            DailyData.ForEach(item =>
            {
                newDailyData.Add(item.Clone());
            });

            return(new FourDaysForecast(newHourlyData, newDailyData));
        }