Example #1
0
 /// <summary>
 /// Gets data for specified date.
 /// </summary>
 /// <param name="date">Date to get condition for.</param>
 /// <returns>Weather condition or if data not available an n/a condition is returned.</returns>
 public WeatherCondition GetData(DateTime date)
 {
     if (_Forecast.ContainsKey(date.Date))
     {
         return(_Forecast[date.Date]);
     }
     else
     {
         return(WeatherCondition.CreateNotAvailable(date.Date));
     }
 }