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