Example #1
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 (OauthProviderId != null)
         {
             hashCode = hashCode * 59 + OauthProviderId.GetHashCode();
         }
         if (OauthProviderGithubAuthorizationUrl != null)
         {
             hashCode = hashCode * 59 + OauthProviderGithubAuthorizationUrl.GetHashCode();
         }
         if (OauthProviderGithubTokenUrl != null)
         {
             hashCode = hashCode * 59 + OauthProviderGithubTokenUrl.GetHashCode();
         }
         if (OauthProviderGithubProfileUrl != null)
         {
             hashCode = hashCode * 59 + OauthProviderGithubProfileUrl.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #2
0
        /// <summary>
        /// Returns true if ComAdobeGraniteAuthOauthImplGithubProviderImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteAuthOauthImplGithubProviderImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteAuthOauthImplGithubProviderImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OauthProviderId == other.OauthProviderId ||
                     OauthProviderId != null &&
                     OauthProviderId.Equals(other.OauthProviderId)
                     ) &&
                 (
                     OauthProviderGithubAuthorizationUrl == other.OauthProviderGithubAuthorizationUrl ||
                     OauthProviderGithubAuthorizationUrl != null &&
                     OauthProviderGithubAuthorizationUrl.Equals(other.OauthProviderGithubAuthorizationUrl)
                 ) &&
                 (
                     OauthProviderGithubTokenUrl == other.OauthProviderGithubTokenUrl ||
                     OauthProviderGithubTokenUrl != null &&
                     OauthProviderGithubTokenUrl.Equals(other.OauthProviderGithubTokenUrl)
                 ) &&
                 (
                     OauthProviderGithubProfileUrl == other.OauthProviderGithubProfileUrl ||
                     OauthProviderGithubProfileUrl != null &&
                     OauthProviderGithubProfileUrl.Equals(other.OauthProviderGithubProfileUrl)
                 ));
        }
Example #3
0
        /// <summary>
        /// Returns true if ComAdobeCqSocialConnectOauthImplFacebookProviderImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeCqSocialConnectOauthImplFacebookProviderImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeCqSocialConnectOauthImplFacebookProviderImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OauthProviderId == other.OauthProviderId ||
                     OauthProviderId != null &&
                     OauthProviderId.Equals(other.OauthProviderId)
                     ) &&
                 (
                     OauthCloudConfigRoot == other.OauthCloudConfigRoot ||
                     OauthCloudConfigRoot != null &&
                     OauthCloudConfigRoot.Equals(other.OauthCloudConfigRoot)
                 ) &&
                 (
                     ProviderConfigRoot == other.ProviderConfigRoot ||
                     ProviderConfigRoot != null &&
                     ProviderConfigRoot.Equals(other.ProviderConfigRoot)
                 ) &&
                 (
                     ProviderConfigCreateTagsEnabled == other.ProviderConfigCreateTagsEnabled ||
                     ProviderConfigCreateTagsEnabled != null &&
                     ProviderConfigCreateTagsEnabled.Equals(other.ProviderConfigCreateTagsEnabled)
                 ) &&
                 (
                     ProviderConfigUserFolder == other.ProviderConfigUserFolder ||
                     ProviderConfigUserFolder != null &&
                     ProviderConfigUserFolder.Equals(other.ProviderConfigUserFolder)
                 ) &&
                 (
                     ProviderConfigFacebookFetchFields == other.ProviderConfigFacebookFetchFields ||
                     ProviderConfigFacebookFetchFields != null &&
                     ProviderConfigFacebookFetchFields.Equals(other.ProviderConfigFacebookFetchFields)
                 ) &&
                 (
                     ProviderConfigFacebookFields == other.ProviderConfigFacebookFields ||
                     ProviderConfigFacebookFields != null &&
                     ProviderConfigFacebookFields.Equals(other.ProviderConfigFacebookFields)
                 ) &&
                 (
                     ProviderConfigRefreshUserdataEnabled == other.ProviderConfigRefreshUserdataEnabled ||
                     ProviderConfigRefreshUserdataEnabled != null &&
                     ProviderConfigRefreshUserdataEnabled.Equals(other.ProviderConfigRefreshUserdataEnabled)
                 ));
        }
        /// <summary>
        /// Returns true if ComAdobeCqSocialConnectOauthImplTwitterProviderImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeCqSocialConnectOauthImplTwitterProviderImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeCqSocialConnectOauthImplTwitterProviderImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OauthProviderId == other.OauthProviderId ||
                     OauthProviderId != null &&
                     OauthProviderId.Equals(other.OauthProviderId)
                     ) &&
                 (
                     OauthCloudConfigRoot == other.OauthCloudConfigRoot ||
                     OauthCloudConfigRoot != null &&
                     OauthCloudConfigRoot.Equals(other.OauthCloudConfigRoot)
                 ) &&
                 (
                     ProviderConfigRoot == other.ProviderConfigRoot ||
                     ProviderConfigRoot != null &&
                     ProviderConfigRoot.Equals(other.ProviderConfigRoot)
                 ) &&
                 (
                     ProviderConfigUserFolder == other.ProviderConfigUserFolder ||
                     ProviderConfigUserFolder != null &&
                     ProviderConfigUserFolder.Equals(other.ProviderConfigUserFolder)
                 ) &&
                 (
                     ProviderConfigTwitterEnableParams == other.ProviderConfigTwitterEnableParams ||
                     ProviderConfigTwitterEnableParams != null &&
                     ProviderConfigTwitterEnableParams.Equals(other.ProviderConfigTwitterEnableParams)
                 ) &&
                 (
                     ProviderConfigTwitterParams == other.ProviderConfigTwitterParams ||
                     ProviderConfigTwitterParams != null &&
                     ProviderConfigTwitterParams.Equals(other.ProviderConfigTwitterParams)
                 ) &&
                 (
                     ProviderConfigRefreshUserdataEnabled == other.ProviderConfigRefreshUserdataEnabled ||
                     ProviderConfigRefreshUserdataEnabled != null &&
                     ProviderConfigRefreshUserdataEnabled.Equals(other.ProviderConfigRefreshUserdataEnabled)
                 ));
        }
Example #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 (OauthProviderId != null)
         {
             hashCode = hashCode * 59 + OauthProviderId.GetHashCode();
         }
         if (OauthCloudConfigRoot != null)
         {
             hashCode = hashCode * 59 + OauthCloudConfigRoot.GetHashCode();
         }
         if (ProviderConfigRoot != null)
         {
             hashCode = hashCode * 59 + ProviderConfigRoot.GetHashCode();
         }
         if (ProviderConfigCreateTagsEnabled != null)
         {
             hashCode = hashCode * 59 + ProviderConfigCreateTagsEnabled.GetHashCode();
         }
         if (ProviderConfigUserFolder != null)
         {
             hashCode = hashCode * 59 + ProviderConfigUserFolder.GetHashCode();
         }
         if (ProviderConfigFacebookFetchFields != null)
         {
             hashCode = hashCode * 59 + ProviderConfigFacebookFetchFields.GetHashCode();
         }
         if (ProviderConfigFacebookFields != null)
         {
             hashCode = hashCode * 59 + ProviderConfigFacebookFields.GetHashCode();
         }
         if (ProviderConfigRefreshUserdataEnabled != null)
         {
             hashCode = hashCode * 59 + ProviderConfigRefreshUserdataEnabled.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #6
0
        /// <summary>
        /// Returns true if ComAdobeGraniteAuthOauthImplGraniteProviderProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteAuthOauthImplGraniteProviderProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteAuthOauthImplGraniteProviderProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OauthProviderId == other.OauthProviderId ||
                     OauthProviderId != null &&
                     OauthProviderId.Equals(other.OauthProviderId)
                     ) &&
                 (
                     OauthProviderGraniteAuthorizationUrl == other.OauthProviderGraniteAuthorizationUrl ||
                     OauthProviderGraniteAuthorizationUrl != null &&
                     OauthProviderGraniteAuthorizationUrl.Equals(other.OauthProviderGraniteAuthorizationUrl)
                 ) &&
                 (
                     OauthProviderGraniteTokenUrl == other.OauthProviderGraniteTokenUrl ||
                     OauthProviderGraniteTokenUrl != null &&
                     OauthProviderGraniteTokenUrl.Equals(other.OauthProviderGraniteTokenUrl)
                 ) &&
                 (
                     OauthProviderGraniteProfileUrl == other.OauthProviderGraniteProfileUrl ||
                     OauthProviderGraniteProfileUrl != null &&
                     OauthProviderGraniteProfileUrl.Equals(other.OauthProviderGraniteProfileUrl)
                 ) &&
                 (
                     OauthProviderGraniteExtendedDetailsUrls == other.OauthProviderGraniteExtendedDetailsUrls ||
                     OauthProviderGraniteExtendedDetailsUrls != null &&
                     OauthProviderGraniteExtendedDetailsUrls.Equals(other.OauthProviderGraniteExtendedDetailsUrls)
                 ));
        }
 /// <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 (OauthProviderId != null)
         {
             hashCode = hashCode * 59 + OauthProviderId.GetHashCode();
         }
         if (OauthProviderImsAuthorizationUrl != null)
         {
             hashCode = hashCode * 59 + OauthProviderImsAuthorizationUrl.GetHashCode();
         }
         if (OauthProviderImsTokenUrl != null)
         {
             hashCode = hashCode * 59 + OauthProviderImsTokenUrl.GetHashCode();
         }
         if (OauthProviderImsProfileUrl != null)
         {
             hashCode = hashCode * 59 + OauthProviderImsProfileUrl.GetHashCode();
         }
         if (OauthProviderImsExtendedDetailsUrls != null)
         {
             hashCode = hashCode * 59 + OauthProviderImsExtendedDetailsUrls.GetHashCode();
         }
         if (OauthProviderImsValidateTokenUrl != null)
         {
             hashCode = hashCode * 59 + OauthProviderImsValidateTokenUrl.GetHashCode();
         }
         if (OauthProviderImsSessionProperty != null)
         {
             hashCode = hashCode * 59 + OauthProviderImsSessionProperty.GetHashCode();
         }
         if (OauthProviderImsServiceTokenClientId != null)
         {
             hashCode = hashCode * 59 + OauthProviderImsServiceTokenClientId.GetHashCode();
         }
         if (OauthProviderImsServiceTokenClientSecret != null)
         {
             hashCode = hashCode * 59 + OauthProviderImsServiceTokenClientSecret.GetHashCode();
         }
         if (OauthProviderImsServiceToken != null)
         {
             hashCode = hashCode * 59 + OauthProviderImsServiceToken.GetHashCode();
         }
         if (ImsOrgRef != null)
         {
             hashCode = hashCode * 59 + ImsOrgRef.GetHashCode();
         }
         if (ImsGroupMapping != null)
         {
             hashCode = hashCode * 59 + ImsGroupMapping.GetHashCode();
         }
         if (OauthProviderImsOnlyLicenseGroup != null)
         {
             hashCode = hashCode * 59 + OauthProviderImsOnlyLicenseGroup.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if ComAdobeGraniteAuthImsImplIMSProviderImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteAuthImsImplIMSProviderImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteAuthImsImplIMSProviderImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OauthProviderId == other.OauthProviderId ||
                     OauthProviderId != null &&
                     OauthProviderId.Equals(other.OauthProviderId)
                     ) &&
                 (
                     OauthProviderImsAuthorizationUrl == other.OauthProviderImsAuthorizationUrl ||
                     OauthProviderImsAuthorizationUrl != null &&
                     OauthProviderImsAuthorizationUrl.Equals(other.OauthProviderImsAuthorizationUrl)
                 ) &&
                 (
                     OauthProviderImsTokenUrl == other.OauthProviderImsTokenUrl ||
                     OauthProviderImsTokenUrl != null &&
                     OauthProviderImsTokenUrl.Equals(other.OauthProviderImsTokenUrl)
                 ) &&
                 (
                     OauthProviderImsProfileUrl == other.OauthProviderImsProfileUrl ||
                     OauthProviderImsProfileUrl != null &&
                     OauthProviderImsProfileUrl.Equals(other.OauthProviderImsProfileUrl)
                 ) &&
                 (
                     OauthProviderImsExtendedDetailsUrls == other.OauthProviderImsExtendedDetailsUrls ||
                     OauthProviderImsExtendedDetailsUrls != null &&
                     OauthProviderImsExtendedDetailsUrls.Equals(other.OauthProviderImsExtendedDetailsUrls)
                 ) &&
                 (
                     OauthProviderImsValidateTokenUrl == other.OauthProviderImsValidateTokenUrl ||
                     OauthProviderImsValidateTokenUrl != null &&
                     OauthProviderImsValidateTokenUrl.Equals(other.OauthProviderImsValidateTokenUrl)
                 ) &&
                 (
                     OauthProviderImsSessionProperty == other.OauthProviderImsSessionProperty ||
                     OauthProviderImsSessionProperty != null &&
                     OauthProviderImsSessionProperty.Equals(other.OauthProviderImsSessionProperty)
                 ) &&
                 (
                     OauthProviderImsServiceTokenClientId == other.OauthProviderImsServiceTokenClientId ||
                     OauthProviderImsServiceTokenClientId != null &&
                     OauthProviderImsServiceTokenClientId.Equals(other.OauthProviderImsServiceTokenClientId)
                 ) &&
                 (
                     OauthProviderImsServiceTokenClientSecret == other.OauthProviderImsServiceTokenClientSecret ||
                     OauthProviderImsServiceTokenClientSecret != null &&
                     OauthProviderImsServiceTokenClientSecret.Equals(other.OauthProviderImsServiceTokenClientSecret)
                 ) &&
                 (
                     OauthProviderImsServiceToken == other.OauthProviderImsServiceToken ||
                     OauthProviderImsServiceToken != null &&
                     OauthProviderImsServiceToken.Equals(other.OauthProviderImsServiceToken)
                 ) &&
                 (
                     ImsOrgRef == other.ImsOrgRef ||
                     ImsOrgRef != null &&
                     ImsOrgRef.Equals(other.ImsOrgRef)
                 ) &&
                 (
                     ImsGroupMapping == other.ImsGroupMapping ||
                     ImsGroupMapping != null &&
                     ImsGroupMapping.Equals(other.ImsGroupMapping)
                 ) &&
                 (
                     OauthProviderImsOnlyLicenseGroup == other.OauthProviderImsOnlyLicenseGroup ||
                     OauthProviderImsOnlyLicenseGroup != null &&
                     OauthProviderImsOnlyLicenseGroup.Equals(other.OauthProviderImsOnlyLicenseGroup)
                 ));
        }