Example #1
0
 public void SetClientId(string clientId)
 {
     if (string.IsNullOrWhiteSpace(ClientId) || !ClientId.Equals(clientId))
     {
         ClientId = clientId;
     }
 }
Example #2
0
        public bool Equals(RenewalParameters other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(SubscriptionId.Equals(other.SubscriptionId) &&
                   string.Equals(TenantId, other.TenantId) &&
                   string.Equals(ResourceGroup, other.ResourceGroup) &&
                   string.Equals(WebApp, other.WebApp) &&
                   Hosts.SequenceEqual(other.Hosts) &&
                   string.Equals(Email, other.Email) &&
                   ClientId.Equals(other.ClientId) &&
                   string.Equals(ClientSecret, other.ClientSecret) &&
                   string.Equals(ServicePlanResourceGroup, other.ServicePlanResourceGroup) &&
                   string.Equals(SiteSlotName, other.SiteSlotName) &&
                   UseIpBasedSsl == other.UseIpBasedSsl &&
                   RsaKeyLength == other.RsaKeyLength &&
                   Equals(AcmeBaseUri, other.AcmeBaseUri));
        }
Example #3
0
        /// <summary>
        ///     Returns true if MsalAuthParameters instances are equal
        /// </summary>
        /// <param name="other">Instance of MsalAuthParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(MsalAuthParameters other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((ClientApplicationId == other.ClientApplicationId ||
                  ClientApplicationId != null && ClientApplicationId.Equals(other.ClientApplicationId)) &&
                 (ClientId == other.ClientId || ClientId != null && ClientId.Equals(other.ClientId)) &&
                 (Authority == other.Authority || Authority != null && Authority.Equals(other.Authority)) &&
                 (RedirectUri == other.RedirectUri || RedirectUri != null && RedirectUri.Equals(other.RedirectUri)) &&
                 (RequestedScopes == other.RequestedScopes ||
                  RequestedScopes != null && RequestedScopes.Equals(other.RequestedScopes)) &&
                 (Username == other.Username || Username != null && Username.Equals(other.Username)) &&
                 (Password == other.Password || Password != null && Password.Equals(other.Password)) &&
                 (TelemetryCorrelationId == other.TelemetryCorrelationId || TelemetryCorrelationId != null &&
                  TelemetryCorrelationId.Equals(other.TelemetryCorrelationId)) &&
                 (AuthorizationType == other.AuthorizationType ||
                  AuthorizationType != null && AuthorizationType.Equals(other.AuthorizationType)));
        }
        public bool Update(Booking booking)
        {
            bool shouldUpdate = false;

            if (!Notes.Equals(booking.Notes, StringComparison.OrdinalIgnoreCase))
            {
                Notes        = booking.Notes;
                shouldUpdate = true;
            }

            if (!BookingDate.Equals(booking.BookingDate))
            {
                BookingDate  = booking.BookingDate;
                shouldUpdate = true;
            }

            if (!ClientId.Equals(booking.ClientId))
            {
                ClientId     = booking.ClientId;
                shouldUpdate = true;
            }

            if (!VehicleId.Equals(booking.ClientId))
            {
                VehicleId    = booking.VehicleId;
                shouldUpdate = true;
            }

            return(shouldUpdate);
        }
Example #5
0
        public Order toOrder()
        {
            // Jeśli którekolwiek TryParse zwróci false !false=true
            if (!double.TryParse(Price, out double price) ||
                !long.TryParse(RequestId, out long requestId) ||
                !int.TryParse(Quantity, out int quantity))
            {
                return(null);
            }
            // Zapobieganie niechcianym formatom danym - wytyczne przedstawione w poleceniu
            if (ClientId == null || RequestId == null || Name == null || Quantity == null || Price == null)
            {
                return(null);
            }
            if (Name.Length > 255)
            {
                return(null);
            }
            if (ClientId.Equals("") || Name.Equals(""))
            {
                return(null);
            }
            if (ClientId.Length > 6 || ClientId.Contains(" "))
            {
                return(null);
            }

            //Zwracamy objekt wywołując konstruktor parametryczny
            return(new Order(ClientId, requestId, Name, quantity, price));
        }
        public bool Equals(RenewalParameters other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(SubscriptionId.Equals(other.SubscriptionId) &&
                   string.Equals(TenantId, other.TenantId) &&
                   string.Equals(ResourceGroup, other.ResourceGroup) &&
                   string.Equals(WebApp, other.WebApp) &&
                   Hosts.SequenceEqual(other.Hosts) &&
                   string.Equals(Email, other.Email) &&
                   ClientId.Equals(other.ClientId) &&
                   string.Equals(ClientSecret, other.ClientSecret) &&
                   string.Equals(ServicePlanResourceGroup, other.ServicePlanResourceGroup) &&
                   string.Equals(SiteSlotName, other.SiteSlotName) &&
                   UseIpBasedSsl == other.UseIpBasedSsl &&
                   RsaKeyLength == other.RsaKeyLength &&
                   Equals(AcmeBaseUri, other.AcmeBaseUri) &&
                   RenewXNumberOfDaysBeforeExpiration == other.RenewXNumberOfDaysBeforeExpiration &&
                   Equals(AuthenticationUri, other.AuthenticationUri) &&
                   Equals(AzureTokenAudience, other.AzureTokenAudience) &&
                   Equals(AzureManagementEndpoint, other.AzureManagementEndpoint) &&
                   string.Equals(AzureDefaultWebsiteDomainName, other.AzureDefaultWebsiteDomainName));
        }
 public bool Equals(BusinessKey other)
 {
     if (other == null)
     {
         return(false);
     }
     return(ClientId.Equals(other.ClientId) && SigningKey.Equals(other.SigningKey));
 }
Example #8
0
        /// <summary>
        /// Returns true if Oauth2Client instances are equal
        /// </summary>
        /// <param name="other">Instance of Oauth2Client to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Oauth2Client other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ClientId == other.ClientId ||
                     ClientId != null &&
                     ClientId.Equals(other.ClientId)
                     ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     AllowedGrantTypes == other.AllowedGrantTypes ||
                     AllowedGrantTypes != null &&
                     other.AllowedGrantTypes != null &&
                     AllowedGrantTypes.SequenceEqual(other.AllowedGrantTypes)
                 ) &&
                 (
                     RedirectUris == other.RedirectUris ||
                     RedirectUris != null &&
                     other.RedirectUris != null &&
                     RedirectUris.SequenceEqual(other.RedirectUris)
                 ) &&
                 (
                     AllowedCorsOrigins == other.AllowedCorsOrigins ||
                     AllowedCorsOrigins != null &&
                     other.AllowedCorsOrigins != null &&
                     AllowedCorsOrigins.SequenceEqual(other.AllowedCorsOrigins)
                 ) &&
                 (
                     PostLogoutRedirectUris == other.PostLogoutRedirectUris ||
                     PostLogoutRedirectUris != null &&
                     other.PostLogoutRedirectUris != null &&
                     PostLogoutRedirectUris.SequenceEqual(other.PostLogoutRedirectUris)
                 ) &&
                 (
                     AllowedScopes == other.AllowedScopes ||
                     AllowedScopes != null &&
                     other.AllowedScopes != null &&
                     AllowedScopes.SequenceEqual(other.AllowedScopes)
                 ) &&
                 (
                     AllowedOfflineAccess == other.AllowedOfflineAccess ||

                     AllowedOfflineAccess.Equals(other.AllowedOfflineAccess)
                 ));
        }
Example #9
0
        /// <summary>
        /// Compares this <see cref="UserAssignedIdentity"/> instance with another object and determines if they are equals.
        /// </summary>
        /// <param name="other"> <see cref="UserAssignedIdentity"/> object to compare. </param>
        /// <returns> True if they are equal, otherwise false. </returns>
        public bool Equals(UserAssignedIdentity other)
        {
            if (other == null)
            {
                return(false);
            }

            return(ClientId.Equals(other.ClientId) && PrincipalId.Equals(other.PrincipalId));
        }
Example #10
0
 public bool Equals(Client other)
 {
     return(base.Equals(other) &&
            ClientId.Equals(other.ClientId) &&
            Height.Equals(other.Height) &&
            Weight.Equals(other.Weight) &&
            MbesAttemptCount.Equals(other.MbesAttemptCount) &&
            MbesAllowAttempt == other.MbesAllowAttempt);
 }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLSurveyTheme)obj;

            //reference types
            if (!Object.Equals(Name, other.Name))
            {
                return(false);
            }
            if (!Object.Equals(RtHtml, other.RtHtml))
            {
                return(false);
            }
            if (!Object.Equals(RtCSS, other.RtCSS))
            {
                return(false);
            }
            if (!Object.Equals(DtHtml, other.DtHtml))
            {
                return(false);
            }
            if (!Object.Equals(DtCSS, other.DtCSS))
            {
                return(false);
            }
            //value types
            if (!ThemeId.Equals(other.ThemeId))
            {
                return(false);
            }
            if (!ClientId.Equals(other.ClientId))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }

            return(true);
        }
 public bool Equals(ClientStatus other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(ClientId.Equals(other.ClientId));
 }
        public bool Equals(BankAccountCreated?other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(base.Equals(other) && ClientId.Equals(other.ClientId) && Iban == other.Iban && Currency == other.Currency && CreatedByEmployee.Equals(other.CreatedByEmployee));
        }
Example #14
0
        public bool Equals(BatchedCashoutValueType other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(CashoutId.Equals(other.CashoutId) &&
                   ClientId.Equals(other.ClientId) &&
                   string.Equals(ToAddress, other.ToAddress) &&
                   Amount == other.Amount);
        }
Example #15
0
        public bool Equals(AzureEnvironmentParams other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(string.Equals(TenantId, other.TenantId, StringComparison.OrdinalIgnoreCase) &&
                   SubscriptionId.Equals(other.SubscriptionId) &&
                   string.Equals(ResourceGroup, other.ResourceGroup, StringComparison.OrdinalIgnoreCase) &&
                   ClientId.Equals(other.ClientId) &&
                   string.Equals(ClientSecret, other.ClientSecret, StringComparison.Ordinal));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is RevokeTokenRequest other &&
                   ((ClientId == null && other.ClientId == null) || (ClientId?.Equals(other.ClientId) == true)) &&
                   ((AccessToken == null && other.AccessToken == null) || (AccessToken?.Equals(other.AccessToken) == true)) &&
                   ((MerchantId == null && other.MerchantId == null) || (MerchantId?.Equals(other.MerchantId) == true)) &&
                   ((RevokeOnlyAccessToken == null && other.RevokeOnlyAccessToken == null) || (RevokeOnlyAccessToken?.Equals(other.RevokeOnlyAccessToken) == true)));
        }
Example #17
0
 public virtual bool Equals(S2SAppSettings settings)
 {
     if (!ClientId.Equals(settings.ClientId))
     {
         return(false);
     }
     if (!ClientSecret.Equals(settings.ClientSecret))
     {
         return(false);
     }
     if (!Resource.Equals(settings.Resource))
     {
         return(false);
     }
     if (!TenantId.Equals(settings.TenantId))
     {
         return(false);
     }
     return(true);
 }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is ObtainTokenRequest other &&
                   ((ClientId == null && other.ClientId == null) || (ClientId?.Equals(other.ClientId) == true)) &&
                   ((ClientSecret == null && other.ClientSecret == null) || (ClientSecret?.Equals(other.ClientSecret) == true)) &&
                   ((Code == null && other.Code == null) || (Code?.Equals(other.Code) == true)) &&
                   ((RedirectUri == null && other.RedirectUri == null) || (RedirectUri?.Equals(other.RedirectUri) == true)) &&
                   ((GrantType == null && other.GrantType == null) || (GrantType?.Equals(other.GrantType) == true)) &&
                   ((RefreshToken == null && other.RefreshToken == null) || (RefreshToken?.Equals(other.RefreshToken) == true)) &&
                   ((MigrationToken == null && other.MigrationToken == null) || (MigrationToken?.Equals(other.MigrationToken) == true)) &&
                   ((Scopes == null && other.Scopes == null) || (Scopes?.Equals(other.Scopes) == true)) &&
                   ((ShortLived == null && other.ShortLived == null) || (ShortLived?.Equals(other.ShortLived) == true)));
        }
Example #19
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is Transaction other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((Tenders == null && other.Tenders == null) || (Tenders?.Equals(other.Tenders) == true)) &&
                   ((Refunds == null && other.Refunds == null) || (Refunds?.Equals(other.Refunds) == true)) &&
                   ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) &&
                   ((Product == null && other.Product == null) || (Product?.Equals(other.Product) == true)) &&
                   ((ClientId == null && other.ClientId == null) || (ClientId?.Equals(other.ClientId) == true)) &&
                   ((ShippingAddress == null && other.ShippingAddress == null) || (ShippingAddress?.Equals(other.ShippingAddress) == true)) &&
                   ((OrderId == null && other.OrderId == null) || (OrderId?.Equals(other.OrderId) == true)));
        }
Example #20
0
        /// <summary>
        /// Determines whether the specified Object is equal to the current Object.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }


            var other = (VLContact)obj;

            //reference types
            if (!Object.Equals(Organization, other.Organization))
            {
                return(false);
            }
            if (!Object.Equals(Title, other.Title))
            {
                return(false);
            }
            if (!Object.Equals(Department, other.Department))
            {
                return(false);
            }
            if (!Object.Equals(FirstName, other.FirstName))
            {
                return(false);
            }
            if (!Object.Equals(LastName, other.LastName))
            {
                return(false);
            }
            if (!Object.Equals(Email, other.Email))
            {
                return(false);
            }
            if (!Object.Equals(Comment, other.Comment))
            {
                return(false);
            }
            //value types
            if (!ClientId.Equals(other.ClientId))
            {
                return(false);
            }
            if (!ListId.Equals(other.ListId))
            {
                return(false);
            }
            if (!ContactId.Equals(other.ContactId))
            {
                return(false);
            }
            if (!AttributeFlags.Equals(other.AttributeFlags))
            {
                return(false);
            }

            return(true);
        }
Example #21
0
 public bool Equals(IClient other)
 {
     return(ClientId.Equals(other?.ClientId));
 }
Example #22
0
 public bool Equals(Record other)
 {
     return(ClientId.Equals(other?.ClientId));
 }
Example #23
0
        /// <summary>
        /// Returns true if Oauth2ClientSubmit instances are equal
        /// </summary>
        /// <param name="other">Instance of Oauth2ClientSubmit to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Oauth2ClientSubmit other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ClientId == other.ClientId ||
                     ClientId != null &&
                     ClientId.Equals(other.ClientId)
                     ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     AllowedGrantTypes == other.AllowedGrantTypes ||
                     AllowedGrantTypes != null &&
                     other.AllowedGrantTypes != null &&
                     AllowedGrantTypes.SequenceEqual(other.AllowedGrantTypes)
                 ) &&
                 (
                     RedirectUris == other.RedirectUris ||
                     RedirectUris != null &&
                     other.RedirectUris != null &&
                     RedirectUris.SequenceEqual(other.RedirectUris)
                 ) &&
                 (
                     AllowedCorsOrigins == other.AllowedCorsOrigins ||
                     AllowedCorsOrigins != null &&
                     other.AllowedCorsOrigins != null &&
                     AllowedCorsOrigins.SequenceEqual(other.AllowedCorsOrigins)
                 ) &&
                 (
                     PostLogoutRedirectUris == other.PostLogoutRedirectUris ||
                     PostLogoutRedirectUris != null &&
                     other.PostLogoutRedirectUris != null &&
                     PostLogoutRedirectUris.SequenceEqual(other.PostLogoutRedirectUris)
                 ) &&
                 (
                     AllowedScopes == other.AllowedScopes ||
                     AllowedScopes != null &&
                     other.AllowedScopes != null &&
                     AllowedScopes.SequenceEqual(other.AllowedScopes)
                 ) &&
                 (
                     ClientSecrets == other.ClientSecrets ||
                     ClientSecrets != null &&
                     other.ClientSecrets != null &&
                     ClientSecrets.SequenceEqual(other.ClientSecrets)
                 ) &&
                 (
                     HashedClientSecrets == other.HashedClientSecrets ||
                     HashedClientSecrets != null &&
                     other.HashedClientSecrets != null &&
                     HashedClientSecrets.SequenceEqual(other.HashedClientSecrets)
                 ) &&
                 (
                     AllowedOfflineAccess == other.AllowedOfflineAccess ||

                     AllowedOfflineAccess.Equals(other.AllowedOfflineAccess)
                 ) &&
                 (
                     AccessTokenLifetime == other.AccessTokenLifetime ||

                     AccessTokenLifetime.Equals(other.AccessTokenLifetime)
                 ) &&
                 (
                     IdentityTokenLifetime == other.IdentityTokenLifetime ||

                     IdentityTokenLifetime.Equals(other.IdentityTokenLifetime)
                 ) &&
                 (
                     RequireConsent == other.RequireConsent ||

                     RequireConsent.Equals(other.RequireConsent)
                 ));
        }
 public bool Equals(Guid other)
 {
     return(ClientId.Equals(other));
 }
Example #25
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)
                 ));
        }