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

            return
                ((
                     Enable == other.Enable ||
                     Enable != null &&
                     Enable.Equals(other.Enable)
                     ) &&
                 (
                     AgentConfiguration == other.AgentConfiguration ||
                     AgentConfiguration != null &&
                     AgentConfiguration.Equals(other.AgentConfiguration)
                 ) &&
                 (
                     ContextPath == other.ContextPath ||
                     ContextPath != null &&
                     ContextPath.Equals(other.ContextPath)
                 ) &&
                 (
                     DisabledCipherSuites == other.DisabledCipherSuites ||
                     DisabledCipherSuites != null &&
                     DisabledCipherSuites.Equals(other.DisabledCipherSuites)
                 ) &&
                 (
                     EnabledCipherSuites == other.EnabledCipherSuites ||
                     EnabledCipherSuites != null &&
                     EnabledCipherSuites.Equals(other.EnabledCipherSuites)
                 ));
        }
Exemple #4
0
        /// <summary>
        /// Returns true if ComDayCqReplicationImplTransportHttpProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqReplicationImplTransportHttpProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqReplicationImplTransportHttpProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DisabledCipherSuites == other.DisabledCipherSuites ||
                     DisabledCipherSuites != null &&
                     DisabledCipherSuites.Equals(other.DisabledCipherSuites)
                     ) &&
                 (
                     EnabledCipherSuites == other.EnabledCipherSuites ||
                     EnabledCipherSuites != null &&
                     EnabledCipherSuites.Equals(other.EnabledCipherSuites)
                 ));
        }