コード例 #1
0
 public ForecastEntry(ForecastDailyEntry entry)
 {
     this.IsShortTerm = false;
     this.Description = entry.WeatherDescription[0].Description;
     this.Temperature = (int)Math.Round(entry.Temp.Day);
     this.DateTime    = entry.ForecastTime;
     this.Icon        = entry.WeatherDescription[0].Icon;
 }
コード例 #2
0
 protected bool Equals(ForecastDailyEntry o)
 {
     return(UnixTimestamp == o.UnixTimestamp && Temp.Equals(o.Temp) && Pressure.Equals(o.Pressure) && Humidity == o.Humidity && WeatherDescription.SequenceEqual(o.WeatherDescription) && Speed.Equals(o.Speed) && Deg == o.Deg && Clouds == o.Clouds && Rain.Equals(o.Rain));
 }