/// <summary> /// Returns true if Settings instances are equal /// </summary> /// <param name="other">Instance of Settings to be compared</param> /// <returns>Boolean</returns> public bool Equals(Settings other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Units == other.Units || Units != null && Units.Equals(other.Units) ) && ( TimeFormat == other.TimeFormat || TimeFormat != null && TimeFormat.Equals(other.TimeFormat) ) && ( CustomTitle == other.CustomTitle || CustomTitle != null && CustomTitle.Equals(other.CustomTitle) ) && ( NightMode == other.NightMode || NightMode != null && NightMode.Equals(other.NightMode) ) && ( Theme == other.Theme || Theme != null && Theme.Equals(other.Theme) ) && ( Language == other.Language || Language != null && Language.Equals(other.Language) ) && ( ShowPlugins == other.ShowPlugins || ShowPlugins != null && ShowPlugins.Equals(other.ShowPlugins) ) && ( ShowRawbg == other.ShowRawbg || ShowRawbg != null && ShowRawbg.Equals(other.ShowRawbg) ) && ( AlarmTypes == other.AlarmTypes || AlarmTypes != null && AlarmTypes.SequenceEqual(other.AlarmTypes) ) && ( AlarmUrgentHigh == other.AlarmUrgentHigh || AlarmUrgentHigh != null && AlarmUrgentHigh.Equals(other.AlarmUrgentHigh) ) && ( AlarmHigh == other.AlarmHigh || AlarmHigh != null && AlarmHigh.Equals(other.AlarmHigh) ) && ( AlarmLow == other.AlarmLow || AlarmLow != null && AlarmLow.Equals(other.AlarmLow) ) && ( AlarmUrgentLow == other.AlarmUrgentLow || AlarmUrgentLow != null && AlarmUrgentLow.Equals(other.AlarmUrgentLow) ) && ( AlarmTimeagoWarn == other.AlarmTimeagoWarn || AlarmTimeagoWarn != null && AlarmTimeagoWarn.Equals(other.AlarmTimeagoWarn) ) && ( AlarmTimeagoWarnMins == other.AlarmTimeagoWarnMins || AlarmTimeagoWarnMins != null && AlarmTimeagoWarnMins.Equals(other.AlarmTimeagoWarnMins) ) && ( AlarmTimeagoUrgent == other.AlarmTimeagoUrgent || AlarmTimeagoUrgent != null && AlarmTimeagoUrgent.Equals(other.AlarmTimeagoUrgent) ) && ( AlarmTimeagoUrgentMins == other.AlarmTimeagoUrgentMins || AlarmTimeagoUrgentMins != null && AlarmTimeagoUrgentMins.Equals(other.AlarmTimeagoUrgentMins) ) && ( Enable == other.Enable || Enable != null && Enable.SequenceEqual(other.Enable) ) && ( Thresholds == other.Thresholds || Thresholds != null && Thresholds.Equals(other.Thresholds) )); }