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