Beispiel #1
0
 /// <summary>
 /// Condition constructor
 /// </summary>
 /// <param name="text">A textual description of conditions</param>
 /// <param name="code">The condition code for this forecast</param>
 /// <param name="temperature">The current temperature, in the units specified by the Units class</param>
 /// <param name="date">The current date and time for which this forecast applies</param>
 public Condition(string text, Weather.ConditionCodes code, int temperature, DateTime date)
 {
     Text        = text;
     Code        = code;
     Temperature = temperature;
     Date        = date;
 }
Beispiel #2
0
 /// <summary>
 /// Forecast day constructor
 /// </summary>
 /// <param name="date">The date to which this forecast applies</param>
 /// <param name="low">The forecasted low temperature for this day</param>
 /// <param name="high">The forecasted high temperature for this day</param>
 /// <param name="text">A textual description of conditions</param>
 /// <param name="code">The condition code for this forecast</param>
 public ForecastDay(DateTime date, int low, int high, string text, Weather.ConditionCodes code)
 {
     Date = date;
     Low  = low;
     High = high;
     Text = text;
     Code = code;
 }