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

            return
                ((
                     ComAdobeAemScreensPlayerPingfrequency == other.ComAdobeAemScreensPlayerPingfrequency ||
                     ComAdobeAemScreensPlayerPingfrequency != null &&
                     ComAdobeAemScreensPlayerPingfrequency.Equals(other.ComAdobeAemScreensPlayerPingfrequency)
                     ) &&
                 (
                     ComAdobeAemScreensDevicePaswordSpecialchars == other.ComAdobeAemScreensDevicePaswordSpecialchars ||
                     ComAdobeAemScreensDevicePaswordSpecialchars != null &&
                     ComAdobeAemScreensDevicePaswordSpecialchars.Equals(other.ComAdobeAemScreensDevicePaswordSpecialchars)
                 ) &&
                 (
                     ComAdobeAemScreensDevicePaswordMinlowercasechars == other.ComAdobeAemScreensDevicePaswordMinlowercasechars ||
                     ComAdobeAemScreensDevicePaswordMinlowercasechars != null &&
                     ComAdobeAemScreensDevicePaswordMinlowercasechars.Equals(other.ComAdobeAemScreensDevicePaswordMinlowercasechars)
                 ) &&
                 (
                     ComAdobeAemScreensDevicePaswordMinuppercasechars == other.ComAdobeAemScreensDevicePaswordMinuppercasechars ||
                     ComAdobeAemScreensDevicePaswordMinuppercasechars != null &&
                     ComAdobeAemScreensDevicePaswordMinuppercasechars.Equals(other.ComAdobeAemScreensDevicePaswordMinuppercasechars)
                 ) &&
                 (
                     ComAdobeAemScreensDevicePaswordMinnumberchars == other.ComAdobeAemScreensDevicePaswordMinnumberchars ||
                     ComAdobeAemScreensDevicePaswordMinnumberchars != null &&
                     ComAdobeAemScreensDevicePaswordMinnumberchars.Equals(other.ComAdobeAemScreensDevicePaswordMinnumberchars)
                 ) &&
                 (
                     ComAdobeAemScreensDevicePaswordMinspecialchars == other.ComAdobeAemScreensDevicePaswordMinspecialchars ||
                     ComAdobeAemScreensDevicePaswordMinspecialchars != null &&
                     ComAdobeAemScreensDevicePaswordMinspecialchars.Equals(other.ComAdobeAemScreensDevicePaswordMinspecialchars)
                 ) &&
                 (
                     ComAdobeAemScreensDevicePaswordMinlength == other.ComAdobeAemScreensDevicePaswordMinlength ||
                     ComAdobeAemScreensDevicePaswordMinlength != null &&
                     ComAdobeAemScreensDevicePaswordMinlength.Equals(other.ComAdobeAemScreensDevicePaswordMinlength)
                 ));
        }
Пример #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 (ComAdobeAemScreensPlayerPingfrequency != null)
         {
             hashCode = hashCode * 59 + ComAdobeAemScreensPlayerPingfrequency.GetHashCode();
         }
         if (ComAdobeAemScreensDevicePaswordSpecialchars != null)
         {
             hashCode = hashCode * 59 + ComAdobeAemScreensDevicePaswordSpecialchars.GetHashCode();
         }
         if (ComAdobeAemScreensDevicePaswordMinlowercasechars != null)
         {
             hashCode = hashCode * 59 + ComAdobeAemScreensDevicePaswordMinlowercasechars.GetHashCode();
         }
         if (ComAdobeAemScreensDevicePaswordMinuppercasechars != null)
         {
             hashCode = hashCode * 59 + ComAdobeAemScreensDevicePaswordMinuppercasechars.GetHashCode();
         }
         if (ComAdobeAemScreensDevicePaswordMinnumberchars != null)
         {
             hashCode = hashCode * 59 + ComAdobeAemScreensDevicePaswordMinnumberchars.GetHashCode();
         }
         if (ComAdobeAemScreensDevicePaswordMinspecialchars != null)
         {
             hashCode = hashCode * 59 + ComAdobeAemScreensDevicePaswordMinspecialchars.GetHashCode();
         }
         if (ComAdobeAemScreensDevicePaswordMinlength != null)
         {
             hashCode = hashCode * 59 + ComAdobeAemScreensDevicePaswordMinlength.GetHashCode();
         }
         return(hashCode);
     }
 }