Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = UnixTimestamp;
         hashCode = (hashCode * 397) ^ MainValues.GetHashCode();
         hashCode = (hashCode * 397) ^ TimestampString.GetHashCode();
         hashCode = (hashCode * 397) ^ WeatherDescription.GetHashCode();
         hashCode = (hashCode * 397) ^ Clouds.GetHashCode();
         hashCode = (hashCode * 397) ^ Wind.GetHashCode();
         return(hashCode);
     }
 }
Пример #2
0
 protected bool Equals(Wind other)
 {
     return(Speed.Equals(other.Speed) && Deg.Equals(other.Deg));
 }
Пример #3
0
 protected bool Equals(ForecastShortTermEntry other)
 {
     return(UnixTimestamp == other.UnixTimestamp && MainValues.Equals(other.MainValues) && string.Equals(TimestampString, other.TimestampString) && WeatherDescription.SequenceEqual(other.WeatherDescription) && Clouds.Equals(other.Clouds) && Wind.Equals(other.Wind));
 }