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