public ForecastEntry(ForecastShortTermEntry entry) { this.IsShortTerm = true; this.Description = entry.WeatherDescription[0].Main; this.Temperature = (int)Math.Round(entry.MainValues.Temp); this.DateTime = entry.ForecastTime; this.Icon = entry.WeatherDescription[0].Icon; }
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)); }