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