コード例 #1
0
        /// <summary>
        /// Returns true if ApplicationInformation instances are equal
        /// </summary>
        /// <param name="other">Instance of ApplicationInformation to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ApplicationInformation other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DataCustodianId == other.DataCustodianId ||
                     DataCustodianId != null &&
                     DataCustodianId.Equals(other.DataCustodianId)
                     ) &&
                 (
                     DataCustodianApplicationStatus == other.DataCustodianApplicationStatus ||
                     DataCustodianApplicationStatus != null &&
                     DataCustodianApplicationStatus.Equals(other.DataCustodianApplicationStatus)
                 ) &&
                 (
                     ThirdPartyApplicationDescription == other.ThirdPartyApplicationDescription ||
                     ThirdPartyApplicationDescription != null &&
                     ThirdPartyApplicationDescription.Equals(other.ThirdPartyApplicationDescription)
                 ) &&
                 (
                     ThirdPartyApplicationStatus == other.ThirdPartyApplicationStatus ||
                     ThirdPartyApplicationStatus != null &&
                     ThirdPartyApplicationStatus.Equals(other.ThirdPartyApplicationStatus)
                 ) &&
                 (
                     ThirdPartyApplicationType == other.ThirdPartyApplicationType ||
                     ThirdPartyApplicationType != null &&
                     ThirdPartyApplicationType.Equals(other.ThirdPartyApplicationType)
                 ) &&
                 (
                     ThirdPartyApplicationUse == other.ThirdPartyApplicationUse ||
                     ThirdPartyApplicationUse != null &&
                     ThirdPartyApplicationUse.Equals(other.ThirdPartyApplicationUse)
                 ) &&
                 (
                     ThirdPartyPhone == other.ThirdPartyPhone ||
                     ThirdPartyPhone != null &&
                     ThirdPartyPhone.Equals(other.ThirdPartyPhone)
                 ) &&
                 (
                     AuthorizationServerUri == other.AuthorizationServerUri ||
                     AuthorizationServerUri != null &&
                     AuthorizationServerUri.Equals(other.AuthorizationServerUri)
                 ) &&
                 (
                     ThirdPartyNotifyUri == other.ThirdPartyNotifyUri ||
                     ThirdPartyNotifyUri != null &&
                     ThirdPartyNotifyUri.Equals(other.ThirdPartyNotifyUri)
                 ) &&
                 (
                     AuthorizationServerAuthorizationEndpoint == other.AuthorizationServerAuthorizationEndpoint ||
                     AuthorizationServerAuthorizationEndpoint != null &&
                     AuthorizationServerAuthorizationEndpoint.Equals(other.AuthorizationServerAuthorizationEndpoint)
                 ) &&
                 (
                     AuthorizationServerRegistrationEndpoint == other.AuthorizationServerRegistrationEndpoint ||
                     AuthorizationServerRegistrationEndpoint != null &&
                     AuthorizationServerRegistrationEndpoint.Equals(other.AuthorizationServerRegistrationEndpoint)
                 ) &&
                 (
                     AuthorizationServerTokenEndpoint == other.AuthorizationServerTokenEndpoint ||
                     AuthorizationServerTokenEndpoint != null &&
                     AuthorizationServerTokenEndpoint.Equals(other.AuthorizationServerTokenEndpoint)
                 ) &&
                 (
                     DataCustodianBulkRequestURI == other.DataCustodianBulkRequestURI ||
                     DataCustodianBulkRequestURI != null &&
                     DataCustodianBulkRequestURI.Equals(other.DataCustodianBulkRequestURI)
                 ) &&
                 (
                     DataCustodianResourceEndpoint == other.DataCustodianResourceEndpoint ||
                     DataCustodianResourceEndpoint != null &&
                     DataCustodianResourceEndpoint.Equals(other.DataCustodianResourceEndpoint)
                 ) &&
                 (
                     ThirdPartyScopeSelectionURI == other.ThirdPartyScopeSelectionURI ||
                     ThirdPartyScopeSelectionURI != null &&
                     ThirdPartyScopeSelectionURI.Equals(other.ThirdPartyScopeSelectionURI)
                 ) &&
                 (
                     ThirdPartyUserPortalScreenURI == other.ThirdPartyUserPortalScreenURI ||
                     ThirdPartyUserPortalScreenURI != null &&
                     ThirdPartyUserPortalScreenURI.Equals(other.ThirdPartyUserPortalScreenURI)
                 ) &&
                 (
                     ClientSecret == other.ClientSecret ||
                     ClientSecret != null &&
                     ClientSecret.Equals(other.ClientSecret)
                 ) &&
                 (
                     LogoUri == other.LogoUri ||
                     LogoUri != null &&
                     LogoUri.Equals(other.LogoUri)
                 ) &&
                 (
                     ClientName == other.ClientName ||
                     ClientName != null &&
                     ClientName.Equals(other.ClientName)
                 ) &&
                 (
                     ClientUri == other.ClientUri ||
                     ClientUri != null &&
                     ClientUri.Equals(other.ClientUri)
                 ) &&
                 (
                     RedirectUri == other.RedirectUri ||
                     RedirectUri != null &&
                     RedirectUri.SequenceEqual(other.RedirectUri)
                 ) &&
                 (
                     ClientId == other.ClientId ||
                     ClientId != null &&
                     ClientId.Equals(other.ClientId)
                 ) &&
                 (
                     TosUri == other.TosUri ||
                     TosUri != null &&
                     TosUri.Equals(other.TosUri)
                 ) &&
                 (
                     PolicyUri == other.PolicyUri ||
                     PolicyUri != null &&
                     PolicyUri.Equals(other.PolicyUri)
                 ) &&
                 (
                     SoftwareId == other.SoftwareId ||
                     SoftwareId != null &&
                     SoftwareId.Equals(other.SoftwareId)
                 ) &&
                 (
                     SoftwareVersion == other.SoftwareVersion ||
                     SoftwareVersion != null &&
                     SoftwareVersion.Equals(other.SoftwareVersion)
                 ) &&
                 (
                     ClientIdIssuedAt == other.ClientIdIssuedAt ||
                     ClientIdIssuedAt != null &&
                     ClientIdIssuedAt.Equals(other.ClientIdIssuedAt)
                 ) &&
                 (
                     ClientSecretExpiresAt == other.ClientSecretExpiresAt ||
                     ClientSecretExpiresAt != null &&
                     ClientSecretExpiresAt.Equals(other.ClientSecretExpiresAt)
                 ) &&
                 (
                     Contacts == other.Contacts ||
                     Contacts != null &&
                     Contacts.SequenceEqual(other.Contacts)
                 ) &&
                 (
                     TokenEndpointAuthMethod == other.TokenEndpointAuthMethod ||
                     TokenEndpointAuthMethod != null &&
                     TokenEndpointAuthMethod.Equals(other.TokenEndpointAuthMethod)
                 ) &&
                 (
                     Scope == other.Scope ||
                     Scope != null &&
                     Scope.SequenceEqual(other.Scope)
                 ) &&
                 (
                     GrantTypes == other.GrantTypes ||
                     GrantTypes != null &&
                     GrantTypes.SequenceEqual(other.GrantTypes)
                 ) &&
                 (
                     ResponseTypes == other.ResponseTypes ||
                     ResponseTypes != null &&
                     ResponseTypes.Equals(other.ResponseTypes)
                 ) &&
                 (
                     RegistrationClientUri == other.RegistrationClientUri ||
                     RegistrationClientUri != null &&
                     RegistrationClientUri.Equals(other.RegistrationClientUri)
                 ) &&
                 (
                     RegistrationAccessToken == other.RegistrationAccessToken ||
                     RegistrationAccessToken != null &&
                     RegistrationAccessToken.Equals(other.RegistrationAccessToken)
                 ) &&
                 (
                     DataCustodianScopeSelectionScreenURI == other.DataCustodianScopeSelectionScreenURI ||
                     DataCustodianScopeSelectionScreenURI != null &&
                     DataCustodianScopeSelectionScreenURI.Equals(other.DataCustodianScopeSelectionScreenURI)
                 ));
        }