示例#1
0
 /// <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 (EmailName != null)
         {
             hashCode = hashCode * 59 + EmailName.GetHashCode();
         }
         if (EmailCreatePostFromReply != null)
         {
             hashCode = hashCode * 59 + EmailCreatePostFromReply.GetHashCode();
         }
         if (EmailAddCommentIdTo != null)
         {
             hashCode = hashCode * 59 + EmailAddCommentIdTo.GetHashCode();
         }
         if (EmailSubjectMaximumLength != null)
         {
             hashCode = hashCode * 59 + EmailSubjectMaximumLength.GetHashCode();
         }
         if (EmailReplyToAddress != null)
         {
             hashCode = hashCode * 59 + EmailReplyToAddress.GetHashCode();
         }
         if (EmailReplyToDelimiter != null)
         {
             hashCode = hashCode * 59 + EmailReplyToDelimiter.GetHashCode();
         }
         if (EmailTrackerIdPrefixInSubject != null)
         {
             hashCode = hashCode * 59 + EmailTrackerIdPrefixInSubject.GetHashCode();
         }
         if (EmailTrackerIdPrefixInBody != null)
         {
             hashCode = hashCode * 59 + EmailTrackerIdPrefixInBody.GetHashCode();
         }
         if (EmailAsHTML != null)
         {
             hashCode = hashCode * 59 + EmailAsHTML.GetHashCode();
         }
         if (EmailDefaultUserName != null)
         {
             hashCode = hashCode * 59 + EmailDefaultUserName.GetHashCode();
         }
         if (EmailTemplatesRootPath != null)
         {
             hashCode = hashCode * 59 + EmailTemplatesRootPath.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#2
0
        /// <summary>
        /// Returns true if ComAdobeCqSocialCommonsEmailreplyImplEmailReplyConfigurationImpProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeCqSocialCommonsEmailreplyImplEmailReplyConfigurationImpProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeCqSocialCommonsEmailreplyImplEmailReplyConfigurationImpProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     EmailName == other.EmailName ||
                     EmailName != null &&
                     EmailName.Equals(other.EmailName)
                     ) &&
                 (
                     EmailCreatePostFromReply == other.EmailCreatePostFromReply ||
                     EmailCreatePostFromReply != null &&
                     EmailCreatePostFromReply.Equals(other.EmailCreatePostFromReply)
                 ) &&
                 (
                     EmailAddCommentIdTo == other.EmailAddCommentIdTo ||
                     EmailAddCommentIdTo != null &&
                     EmailAddCommentIdTo.Equals(other.EmailAddCommentIdTo)
                 ) &&
                 (
                     EmailSubjectMaximumLength == other.EmailSubjectMaximumLength ||
                     EmailSubjectMaximumLength != null &&
                     EmailSubjectMaximumLength.Equals(other.EmailSubjectMaximumLength)
                 ) &&
                 (
                     EmailReplyToAddress == other.EmailReplyToAddress ||
                     EmailReplyToAddress != null &&
                     EmailReplyToAddress.Equals(other.EmailReplyToAddress)
                 ) &&
                 (
                     EmailReplyToDelimiter == other.EmailReplyToDelimiter ||
                     EmailReplyToDelimiter != null &&
                     EmailReplyToDelimiter.Equals(other.EmailReplyToDelimiter)
                 ) &&
                 (
                     EmailTrackerIdPrefixInSubject == other.EmailTrackerIdPrefixInSubject ||
                     EmailTrackerIdPrefixInSubject != null &&
                     EmailTrackerIdPrefixInSubject.Equals(other.EmailTrackerIdPrefixInSubject)
                 ) &&
                 (
                     EmailTrackerIdPrefixInBody == other.EmailTrackerIdPrefixInBody ||
                     EmailTrackerIdPrefixInBody != null &&
                     EmailTrackerIdPrefixInBody.Equals(other.EmailTrackerIdPrefixInBody)
                 ) &&
                 (
                     EmailAsHTML == other.EmailAsHTML ||
                     EmailAsHTML != null &&
                     EmailAsHTML.Equals(other.EmailAsHTML)
                 ) &&
                 (
                     EmailDefaultUserName == other.EmailDefaultUserName ||
                     EmailDefaultUserName != null &&
                     EmailDefaultUserName.Equals(other.EmailDefaultUserName)
                 ) &&
                 (
                     EmailTemplatesRootPath == other.EmailTemplatesRootPath ||
                     EmailTemplatesRootPath != null &&
                     EmailTemplatesRootPath.Equals(other.EmailTemplatesRootPath)
                 ));
        }