/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (RepconfTimezone != null) { hashCode = hashCode * 59 + RepconfTimezone.GetHashCode(); } if (RepconfLocale != null) { hashCode = hashCode * 59 + RepconfLocale.GetHashCode(); } if (RepconfSnapshots != null) { hashCode = hashCode * 59 + RepconfSnapshots.GetHashCode(); } if (RepconfRepdir != null) { hashCode = hashCode * 59 + RepconfRepdir.GetHashCode(); } if (RepconfHourofday != null) { hashCode = hashCode * 59 + RepconfHourofday.GetHashCode(); } if (RepconfMinofhour != null) { hashCode = hashCode * 59 + RepconfMinofhour.GetHashCode(); } if (RepconfMaxrows != null) { hashCode = hashCode * 59 + RepconfMaxrows.GetHashCode(); } if (RepconfFakedata != null) { hashCode = hashCode * 59 + RepconfFakedata.GetHashCode(); } if (RepconfSnapshotuser != null) { hashCode = hashCode * 59 + RepconfSnapshotuser.GetHashCode(); } if (RepconfEnforcesnapshotuser != null) { hashCode = hashCode * 59 + RepconfEnforcesnapshotuser.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if ComDayCqReportingImplConfigServiceImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCqReportingImplConfigServiceImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCqReportingImplConfigServiceImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( RepconfTimezone == other.RepconfTimezone || RepconfTimezone != null && RepconfTimezone.Equals(other.RepconfTimezone) ) && ( RepconfLocale == other.RepconfLocale || RepconfLocale != null && RepconfLocale.Equals(other.RepconfLocale) ) && ( RepconfSnapshots == other.RepconfSnapshots || RepconfSnapshots != null && RepconfSnapshots.Equals(other.RepconfSnapshots) ) && ( RepconfRepdir == other.RepconfRepdir || RepconfRepdir != null && RepconfRepdir.Equals(other.RepconfRepdir) ) && ( RepconfHourofday == other.RepconfHourofday || RepconfHourofday != null && RepconfHourofday.Equals(other.RepconfHourofday) ) && ( RepconfMinofhour == other.RepconfMinofhour || RepconfMinofhour != null && RepconfMinofhour.Equals(other.RepconfMinofhour) ) && ( RepconfMaxrows == other.RepconfMaxrows || RepconfMaxrows != null && RepconfMaxrows.Equals(other.RepconfMaxrows) ) && ( RepconfFakedata == other.RepconfFakedata || RepconfFakedata != null && RepconfFakedata.Equals(other.RepconfFakedata) ) && ( RepconfSnapshotuser == other.RepconfSnapshotuser || RepconfSnapshotuser != null && RepconfSnapshotuser.Equals(other.RepconfSnapshotuser) ) && ( RepconfEnforcesnapshotuser == other.RepconfEnforcesnapshotuser || RepconfEnforcesnapshotuser != null && RepconfEnforcesnapshotuser.Equals(other.RepconfEnforcesnapshotuser) )); }