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