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

            return
                ((
                     Enabled == other.Enabled ||
                     Enabled != null &&
                     Enabled.Equals(other.Enabled)
                     ) &&
                 (
                     AgentName == other.AgentName ||
                     AgentName != null &&
                     AgentName.Equals(other.AgentName)
                 ) &&
                 (
                     DiffPath == other.DiffPath ||
                     DiffPath != null &&
                     DiffPath.Equals(other.DiffPath)
                 ) &&
                 (
                     PropertyNames == other.PropertyNames ||
                     PropertyNames != null &&
                     PropertyNames.Equals(other.PropertyNames)
                 ));
        }
        /// <summary>
        /// Returns true if ComAdobeGraniteDistributionCoreImplDiffDiffEventListenerProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteDistributionCoreImplDiffDiffEventListenerProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteDistributionCoreImplDiffDiffEventListenerProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DiffPath == other.DiffPath ||
                     DiffPath != null &&
                     DiffPath.Equals(other.DiffPath)
                     ) &&
                 (
                     ServiceName == other.ServiceName ||
                     ServiceName != null &&
                     ServiceName.Equals(other.ServiceName)
                 ) &&
                 (
                     ServiceUserTarget == other.ServiceUserTarget ||
                     ServiceUserTarget != null &&
                     ServiceUserTarget.Equals(other.ServiceUserTarget)
                 ));
        }
예제 #4
0
        /// <summary>
        /// Returns true if ComAdobeGraniteDistributionCoreImplDiffDiffChangesObserverProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteDistributionCoreImplDiffDiffChangesObserverProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteDistributionCoreImplDiffDiffChangesObserverProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Enabled == other.Enabled ||
                     Enabled != null &&
                     Enabled.Equals(other.Enabled)
                     ) &&
                 (
                     AgentName == other.AgentName ||
                     AgentName != null &&
                     AgentName.Equals(other.AgentName)
                 ) &&
                 (
                     DiffPath == other.DiffPath ||
                     DiffPath != null &&
                     DiffPath.Equals(other.DiffPath)
                 ) &&
                 (
                     ObservedPath == other.ObservedPath ||
                     ObservedPath != null &&
                     ObservedPath.Equals(other.ObservedPath)
                 ) &&
                 (
                     ServiceName == other.ServiceName ||
                     ServiceName != null &&
                     ServiceName.Equals(other.ServiceName)
                 ) &&
                 (
                     PropertyNames == other.PropertyNames ||
                     PropertyNames != null &&
                     PropertyNames.Equals(other.PropertyNames)
                 ) &&
                 (
                     DistributionDelay == other.DistributionDelay ||
                     DistributionDelay != null &&
                     DistributionDelay.Equals(other.DistributionDelay)
                 ) &&
                 (
                     ServiceUserTarget == other.ServiceUserTarget ||
                     ServiceUserTarget != null &&
                     ServiceUserTarget.Equals(other.ServiceUserTarget)
                 ));
        }
예제 #5
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 (Enabled != null)
         {
             hashCode = hashCode * 59 + Enabled.GetHashCode();
         }
         if (AgentName != null)
         {
             hashCode = hashCode * 59 + AgentName.GetHashCode();
         }
         if (DiffPath != null)
         {
             hashCode = hashCode * 59 + DiffPath.GetHashCode();
         }
         if (ObservedPath != null)
         {
             hashCode = hashCode * 59 + ObservedPath.GetHashCode();
         }
         if (ServiceName != null)
         {
             hashCode = hashCode * 59 + ServiceName.GetHashCode();
         }
         if (PropertyNames != null)
         {
             hashCode = hashCode * 59 + PropertyNames.GetHashCode();
         }
         if (DistributionDelay != null)
         {
             hashCode = hashCode * 59 + DistributionDelay.GetHashCode();
         }
         if (ServiceUserTarget != null)
         {
             hashCode = hashCode * 59 + ServiceUserTarget.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <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 (DiffPath != null)
         {
             hashCode = hashCode * 59 + DiffPath.GetHashCode();
         }
         if (ServiceName != null)
         {
             hashCode = hashCode * 59 + ServiceName.GetHashCode();
         }
         if (ServiceUserTarget != null)
         {
             hashCode = hashCode * 59 + ServiceUserTarget.GetHashCode();
         }
         return(hashCode);
     }
 }