Exemplo n.º 1
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)
                 ));
        }