/// <summary> /// Returns true if ComDayCqDamCoreImplExpiryNotificationJobImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCqDamCoreImplExpiryNotificationJobImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCqDamCoreImplExpiryNotificationJobImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( CqDamExpiryNotificationSchedulerIstimebased == other.CqDamExpiryNotificationSchedulerIstimebased || CqDamExpiryNotificationSchedulerIstimebased != null && CqDamExpiryNotificationSchedulerIstimebased.Equals(other.CqDamExpiryNotificationSchedulerIstimebased) ) && ( CqDamExpiryNotificationSchedulerTimebasedRule == other.CqDamExpiryNotificationSchedulerTimebasedRule || CqDamExpiryNotificationSchedulerTimebasedRule != null && CqDamExpiryNotificationSchedulerTimebasedRule.Equals(other.CqDamExpiryNotificationSchedulerTimebasedRule) ) && ( CqDamExpiryNotificationSchedulerPeriodRule == other.CqDamExpiryNotificationSchedulerPeriodRule || CqDamExpiryNotificationSchedulerPeriodRule != null && CqDamExpiryNotificationSchedulerPeriodRule.Equals(other.CqDamExpiryNotificationSchedulerPeriodRule) ) && ( SendEmail == other.SendEmail || SendEmail != null && SendEmail.Equals(other.SendEmail) ) && ( AssetExpiredLimit == other.AssetExpiredLimit || AssetExpiredLimit != null && AssetExpiredLimit.Equals(other.AssetExpiredLimit) ) && ( PriorNotificationSeconds == other.PriorNotificationSeconds || PriorNotificationSeconds != null && PriorNotificationSeconds.Equals(other.PriorNotificationSeconds) ) && ( CqDamExpiryNotificationUrlProtocol == other.CqDamExpiryNotificationUrlProtocol || CqDamExpiryNotificationUrlProtocol != null && CqDamExpiryNotificationUrlProtocol.Equals(other.CqDamExpiryNotificationUrlProtocol) )); }
/// <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 (CqDamExpiryNotificationSchedulerIstimebased != null) { hashCode = hashCode * 59 + CqDamExpiryNotificationSchedulerIstimebased.GetHashCode(); } if (CqDamExpiryNotificationSchedulerTimebasedRule != null) { hashCode = hashCode * 59 + CqDamExpiryNotificationSchedulerTimebasedRule.GetHashCode(); } if (CqDamExpiryNotificationSchedulerPeriodRule != null) { hashCode = hashCode * 59 + CqDamExpiryNotificationSchedulerPeriodRule.GetHashCode(); } if (SendEmail != null) { hashCode = hashCode * 59 + SendEmail.GetHashCode(); } if (AssetExpiredLimit != null) { hashCode = hashCode * 59 + AssetExpiredLimit.GetHashCode(); } if (PriorNotificationSeconds != null) { hashCode = hashCode * 59 + PriorNotificationSeconds.GetHashCode(); } if (CqDamExpiryNotificationUrlProtocol != null) { hashCode = hashCode * 59 + CqDamExpiryNotificationUrlProtocol.GetHashCode(); } return(hashCode); } }