예제 #1
0
        /// <summary>
        /// Returns true if ComAdobeCqWcmJobsAsyncImplAsyncMoveConfigProviderServiceProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeCqWcmJobsAsyncImplAsyncMoveConfigProviderServiceProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeCqWcmJobsAsyncImplAsyncMoveConfigProviderServiceProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Threshold == other.Threshold ||
                     Threshold != null &&
                     Threshold.Equals(other.Threshold)
                     ) &&
                 (
                     JobTopicName == other.JobTopicName ||
                     JobTopicName != null &&
                     JobTopicName.Equals(other.JobTopicName)
                 ) &&
                 (
                     EmailEnabled == other.EmailEnabled ||
                     EmailEnabled != null &&
                     EmailEnabled.Equals(other.EmailEnabled)
                 ));
        }
예제 #2
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 (Threshold != null)
         {
             hashCode = hashCode * 59 + Threshold.GetHashCode();
         }
         if (JobTopicName != null)
         {
             hashCode = hashCode * 59 + JobTopicName.GetHashCode();
         }
         if (EmailEnabled != null)
         {
             hashCode = hashCode * 59 + EmailEnabled.GetHashCode();
         }
         return(hashCode);
     }
 }