예제 #1
0
        public List <string> GetFifthDayHours()
        {
            var           fifthDay = Forecast3hrs.Skip(fourthDayEnd).Take(40 - fourthDayEnd + 1);
            List <string> dayHours = fifthDay.Select(d => d.Time.TimeOfDay.ToString()).ToList();

            return(dayHours);
        }
예제 #2
0
        public List <string> GetFourthDayHours()
        {
            var           fourthDay = Forecast3hrs.Skip(thirdDayEnd).Take(fourthDayEnd - thirdDayEnd);
            List <string> dayHours  = fourthDay.Select(d => d.Time.TimeOfDay.ToString()).ToList();

            return(dayHours);
        }
예제 #3
0
        public List <double> GetFifthDayTemp()
        {
            var           fifthDay = Forecast3hrs.Skip(fourthDayEnd).Take(40 - fourthDayEnd + 1);
            List <double> dayTemp  = fifthDay.Select(d => d.Parameters.MaxTemperature).ToList();

            return(dayTemp);
        }
예제 #4
0
        public List <string> GetThirdDayHours()
        {
            var           thirdDay = Forecast3hrs.Skip(secondDayEnd).Take(thirdDayEnd - secondDayEnd);
            List <string> dayHours = thirdDay.Select(d => d.Time.TimeOfDay.ToString()).ToList();

            return(dayHours);
        }
예제 #5
0
        public List <double> GetFourthDayTemp()
        {
            var           fourthDay = Forecast3hrs.Skip(thirdDayEnd).Take(fourthDayEnd - thirdDayEnd);
            List <double> dayTemp   = fourthDay.Select(d => d.Parameters.MaxTemperature).ToList();

            return(dayTemp);
        }
예제 #6
0
        public List <double> GetThirdDayTemp()
        {
            var           thirdDay = Forecast3hrs.Skip(secondDayEnd).Take(thirdDayEnd - secondDayEnd);
            List <double> dayTemp  = thirdDay.Select(d => d.Parameters.MaxTemperature).ToList();

            return(dayTemp);
        }
예제 #7
0
        public List <string> GetSecondDayHours()
        {
            var           secondDay = Forecast3hrs.Skip(firstDayEnd).Take(secondDayEnd - firstDayEnd);
            List <string> dayHours  = secondDay.Select(d => d.Time.TimeOfDay.ToString()).ToList();

            return(dayHours);
        }
예제 #8
0
        public List <double> GetSecondDayTemp()
        {
            var           secondDay = Forecast3hrs.Skip(firstDayEnd).Take(secondDayEnd - firstDayEnd);
            List <double> dayTemp   = secondDay.Select(d => d.Parameters.MaxTemperature).ToList();

            return(dayTemp);
        }
예제 #9
0
        public List <string> GetFirstDayHours()
        {
            var           firstDay = Forecast3hrs.Take(firstDayEnd);
            List <string> dayHours = firstDay.Select(d => d.Time.TimeOfDay.ToString()).ToList();

            return(dayHours);
        }
예제 #10
0
        public List <double> GetFirstDayTemp()
        {
            var           firstDay = Forecast3hrs.Take(firstDayEnd);
            List <double> dayTemp  = firstDay.Select(d => d.Parameters.MaxTemperature).ToList();

            return(dayTemp);
        }
예제 #11
0
        public void CalculateDaysEnd()
        {
            int day = Forecast3hrs[0].Time.Day;

            firstDayEnd  = Forecast3hrs.Where(f => f.Time.Day == day).Count();
            day          = Forecast3hrs[firstDayEnd].Time.Day;
            secondDayEnd = firstDayEnd + Forecast3hrs.Where(f => f.Time.Day == day).Count();
            day          = Forecast3hrs[secondDayEnd].Time.Day;
            thirdDayEnd  = secondDayEnd + Forecast3hrs.Where(f => f.Time.Day == day).Count();
            day          = Forecast3hrs[thirdDayEnd].Time.Day;
            fourthDayEnd = thirdDayEnd + Forecast3hrs.Where(f => f.Time.Day == day).Count();
        }