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); } }
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)); }
protected bool Equals(MainValues other) { return(Temp.Equals(other.Temp) && TempMin.Equals(other.TempMin) && TempMax.Equals(other.TempMax) && Pressure.Equals(other.Pressure) && SeaLevel.Equals(other.SeaLevel) && GroundLevel.Equals(other.GroundLevel) && Humidity.Equals(other.Humidity)); }