From a57e50a49ed5056aaac7ebd9614499aecf6776fd Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Mon, 15 Apr 2024 22:01:52 +0200 Subject: [PATCH] Namespace fixes --- BTCPayApp.Core/AspNetRip/AccessTokenResponse.cs | 4 ++-- BTCPayApp.Core/AspNetRip/LoginRequest.cs | 4 ++-- BTCPayApp.Core/AspNetRip/ProblemDetails.cs | 4 ++-- BTCPayApp.Core/AspNetRip/RefreshRequest.cs | 4 ++-- BTCPayApp.Core/AspNetRip/ResetPasswordRequest.cs | 5 ++--- BTCPayApp.Core/BTCPayAppClient.cs | 6 +++--- 6 files changed, 13 insertions(+), 14 deletions(-) diff --git a/BTCPayApp.Core/AspNetRip/AccessTokenResponse.cs b/BTCPayApp.Core/AspNetRip/AccessTokenResponse.cs index bf38cb7c..60419db6 100644 --- a/BTCPayApp.Core/AspNetRip/AccessTokenResponse.cs +++ b/BTCPayApp.Core/AspNetRip/AccessTokenResponse.cs @@ -3,7 +3,7 @@ using System.Text.Json; -namespace Microsoft.AspNetCore.Authentication.BearerToken; +namespace BTCPayApp.Core.AspNetRip; /// /// The JSON data transfer object for the bearer token response typically found in "/login" and "/refresh" responses. @@ -42,4 +42,4 @@ public sealed class AccessTokenResponse /// This is serialized as "refreshToken": "{RefreshToken}" using using . /// public required string RefreshToken { get; init; } -} \ No newline at end of file +} diff --git a/BTCPayApp.Core/AspNetRip/LoginRequest.cs b/BTCPayApp.Core/AspNetRip/LoginRequest.cs index 58051a9e..81d39a94 100644 --- a/BTCPayApp.Core/AspNetRip/LoginRequest.cs +++ b/BTCPayApp.Core/AspNetRip/LoginRequest.cs @@ -1,4 +1,4 @@ -namespace Microsoft.AspNetCore.Identity.Data; +namespace BTCPayApp.Core.AspNetRip; /// /// The request type for the "/login" endpoint added by . @@ -26,4 +26,4 @@ public sealed class LoginRequest /// This is required for users who have enabled two-factor authentication but lost access to their . /// public string? TwoFactorRecoveryCode { get; init; } -} \ No newline at end of file +} diff --git a/BTCPayApp.Core/AspNetRip/ProblemDetails.cs b/BTCPayApp.Core/AspNetRip/ProblemDetails.cs index 8c94037f..84513760 100644 --- a/BTCPayApp.Core/AspNetRip/ProblemDetails.cs +++ b/BTCPayApp.Core/AspNetRip/ProblemDetails.cs @@ -3,7 +3,7 @@ using System.Text.Json.Serialization; -namespace Microsoft.AspNetCore.Mvc; +namespace BTCPayApp.Core.AspNetRip; /// /// A machine-readable format for specifying errors in HTTP API responses based on . @@ -68,4 +68,4 @@ public class ProblemDetails /// [JsonExtensionData] public IDictionary Extensions { get; set; } = new Dictionary(StringComparer.Ordinal); -} \ No newline at end of file +} diff --git a/BTCPayApp.Core/AspNetRip/RefreshRequest.cs b/BTCPayApp.Core/AspNetRip/RefreshRequest.cs index da5e3400..cd0437c4 100644 --- a/BTCPayApp.Core/AspNetRip/RefreshRequest.cs +++ b/BTCPayApp.Core/AspNetRip/RefreshRequest.cs @@ -1,4 +1,4 @@ -namespace Microsoft.AspNetCore.Identity.Data; +namespace BTCPayApp.Core.AspNetRip; /// /// The request type for the "/refresh" endpoint added by . @@ -10,4 +10,4 @@ public sealed class RefreshRequest /// with an extended expiration. /// public required string RefreshToken { get; init; } -} \ No newline at end of file +} diff --git a/BTCPayApp.Core/AspNetRip/ResetPasswordRequest.cs b/BTCPayApp.Core/AspNetRip/ResetPasswordRequest.cs index 77561f64..3f6b5d8a 100644 --- a/BTCPayApp.Core/AspNetRip/ResetPasswordRequest.cs +++ b/BTCPayApp.Core/AspNetRip/ResetPasswordRequest.cs @@ -1,5 +1,4 @@ - -namespace Microsoft.AspNetCore.Identity.Data; +namespace BTCPayApp.Core.AspNetRip; /// /// The response type for the "/resetPassword" endpoint added by . @@ -21,4 +20,4 @@ public sealed class ResetPasswordRequest /// The new password the user with the given should login with. This will replace the previous password. /// public required string NewPassword { get; init; } -} \ No newline at end of file +} diff --git a/BTCPayApp.Core/BTCPayAppClient.cs b/BTCPayApp.Core/BTCPayAppClient.cs index 634a28d1..a78e3dea 100644 --- a/BTCPayApp.Core/BTCPayAppClient.cs +++ b/BTCPayApp.Core/BTCPayAppClient.cs @@ -2,9 +2,9 @@ using System.Net.Http.Headers; using System.Net.Http.Json; using BTCPayApp.CommonServer; -using Microsoft.AspNetCore.Authentication.BearerToken; -using Microsoft.AspNetCore.Identity.Data; -using Microsoft.AspNetCore.Mvc; +using AccessTokenResponse = BTCPayApp.Core.AspNetRip.AccessTokenResponse; +using ProblemDetails = BTCPayApp.Core.AspNetRip.ProblemDetails; +using RefreshRequest = BTCPayApp.Core.AspNetRip.RefreshRequest; namespace BTCPayApp.Core;