/// <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 (SchedulerExpression != null) { hashCode = hashCode * 59 + SchedulerExpression.GetHashCode(); } if (MaxSavedReports != null) { hashCode = hashCode * 59 + MaxSavedReports.GetHashCode(); } if (TimeDuration != null) { hashCode = hashCode * 59 + TimeDuration.GetHashCode(); } if (EnableReportPurge != null) { hashCode = hashCode * 59 + EnableReportPurge.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if ComDayCqDamCoreImplReportsReportPurgeServiceProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCqDamCoreImplReportsReportPurgeServiceProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCqDamCoreImplReportsReportPurgeServiceProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( SchedulerExpression == other.SchedulerExpression || SchedulerExpression != null && SchedulerExpression.Equals(other.SchedulerExpression) ) && ( MaxSavedReports == other.MaxSavedReports || MaxSavedReports != null && MaxSavedReports.Equals(other.MaxSavedReports) ) && ( TimeDuration == other.TimeDuration || TimeDuration != null && TimeDuration.Equals(other.TimeDuration) ) && ( EnableReportPurge == other.EnableReportPurge || EnableReportPurge != null && EnableReportPurge.Equals(other.EnableReportPurge) )); }