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