From 788d11f39a6b1a5adcfb66e1b85f35c5849d21c2 Mon Sep 17 00:00:00 2001 From: Elijah R Date: Fri, 5 Apr 2024 09:16:48 -0400 Subject: [PATCH] tidy things up by moving payloads and responses into their own namespaces --- CollabVMAuthServer/{ => HTTP/Payloads}/JoinPayload.cs | 2 +- CollabVMAuthServer/{ => HTTP/Payloads}/LoginPayload.cs | 2 +- CollabVMAuthServer/{ => HTTP/Payloads}/LogoutPayload.cs | 2 +- CollabVMAuthServer/{ => HTTP/Payloads}/RegisterPayload.cs | 2 +- CollabVMAuthServer/{ => HTTP/Payloads}/SessionPayload.cs | 2 +- CollabVMAuthServer/{ => HTTP/Payloads}/UpdatePayload.cs | 2 +- CollabVMAuthServer/{ => HTTP/Payloads}/VerifyPayload.cs | 2 +- .../{ => HTTP/Responses}/AuthServerInformation.cs | 2 +- CollabVMAuthServer/{ => HTTP/Responses}/JoinResponse.cs | 2 +- CollabVMAuthServer/{ => HTTP/Responses}/LoginResponse.cs | 2 +- CollabVMAuthServer/{ => HTTP/Responses}/LogoutResponse.cs | 2 +- CollabVMAuthServer/{ => HTTP/Responses}/RegisterResponse.cs | 2 +- CollabVMAuthServer/{ => HTTP/Responses}/SessionResponse.cs | 2 +- CollabVMAuthServer/{ => HTTP/Responses}/UpdateResponse.cs | 2 +- CollabVMAuthServer/{ => HTTP/Responses}/VerifyResponse.cs | 2 +- CollabVMAuthServer/Routes.cs | 2 ++ 16 files changed, 17 insertions(+), 15 deletions(-) rename CollabVMAuthServer/{ => HTTP/Payloads}/JoinPayload.cs (72%) rename CollabVMAuthServer/{ => HTTP/Payloads}/LoginPayload.cs (73%) rename CollabVMAuthServer/{ => HTTP/Payloads}/LogoutPayload.cs (54%) rename CollabVMAuthServer/{ => HTTP/Payloads}/RegisterPayload.cs (77%) rename CollabVMAuthServer/{ => HTTP/Payloads}/SessionPayload.cs (55%) rename CollabVMAuthServer/{ => HTTP/Payloads}/UpdatePayload.cs (81%) rename CollabVMAuthServer/{ => HTTP/Payloads}/VerifyPayload.cs (72%) rename CollabVMAuthServer/{ => HTTP/Responses}/AuthServerInformation.cs (82%) rename CollabVMAuthServer/{ => HTTP/Responses}/JoinResponse.cs (80%) rename CollabVMAuthServer/{ => HTTP/Responses}/LoginResponse.cs (82%) rename CollabVMAuthServer/{ => HTTP/Responses}/LogoutResponse.cs (65%) rename CollabVMAuthServer/{ => HTTP/Responses}/RegisterResponse.cs (83%) rename CollabVMAuthServer/{ => HTTP/Responses}/SessionResponse.cs (80%) rename CollabVMAuthServer/{ => HTTP/Responses}/UpdateResponse.cs (79%) rename CollabVMAuthServer/{ => HTTP/Responses}/VerifyResponse.cs (72%) diff --git a/CollabVMAuthServer/JoinPayload.cs b/CollabVMAuthServer/HTTP/Payloads/JoinPayload.cs similarity index 72% rename from CollabVMAuthServer/JoinPayload.cs rename to CollabVMAuthServer/HTTP/Payloads/JoinPayload.cs index d77e668..da6f10e 100644 --- a/CollabVMAuthServer/JoinPayload.cs +++ b/CollabVMAuthServer/HTTP/Payloads/JoinPayload.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Payloads; public class JoinPayload { diff --git a/CollabVMAuthServer/LoginPayload.cs b/CollabVMAuthServer/HTTP/Payloads/LoginPayload.cs similarity index 73% rename from CollabVMAuthServer/LoginPayload.cs rename to CollabVMAuthServer/HTTP/Payloads/LoginPayload.cs index ac7c124..7b66f02 100644 --- a/CollabVMAuthServer/LoginPayload.cs +++ b/CollabVMAuthServer/HTTP/Payloads/LoginPayload.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Payloads; public class LoginPayload { diff --git a/CollabVMAuthServer/LogoutPayload.cs b/CollabVMAuthServer/HTTP/Payloads/LogoutPayload.cs similarity index 54% rename from CollabVMAuthServer/LogoutPayload.cs rename to CollabVMAuthServer/HTTP/Payloads/LogoutPayload.cs index 9be9546..eafa7e0 100644 --- a/CollabVMAuthServer/LogoutPayload.cs +++ b/CollabVMAuthServer/HTTP/Payloads/LogoutPayload.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Payloads; public class LogoutPayload { diff --git a/CollabVMAuthServer/RegisterPayload.cs b/CollabVMAuthServer/HTTP/Payloads/RegisterPayload.cs similarity index 77% rename from CollabVMAuthServer/RegisterPayload.cs rename to CollabVMAuthServer/HTTP/Payloads/RegisterPayload.cs index 885db72..e24f0df 100644 --- a/CollabVMAuthServer/RegisterPayload.cs +++ b/CollabVMAuthServer/HTTP/Payloads/RegisterPayload.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Payloads; public class RegisterPayload { diff --git a/CollabVMAuthServer/SessionPayload.cs b/CollabVMAuthServer/HTTP/Payloads/SessionPayload.cs similarity index 55% rename from CollabVMAuthServer/SessionPayload.cs rename to CollabVMAuthServer/HTTP/Payloads/SessionPayload.cs index 85d2b87..ce6c177 100644 --- a/CollabVMAuthServer/SessionPayload.cs +++ b/CollabVMAuthServer/HTTP/Payloads/SessionPayload.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Payloads; public class SessionPayload { diff --git a/CollabVMAuthServer/UpdatePayload.cs b/CollabVMAuthServer/HTTP/Payloads/UpdatePayload.cs similarity index 81% rename from CollabVMAuthServer/UpdatePayload.cs rename to CollabVMAuthServer/HTTP/Payloads/UpdatePayload.cs index 7aa4f84..cd537a9 100644 --- a/CollabVMAuthServer/UpdatePayload.cs +++ b/CollabVMAuthServer/HTTP/Payloads/UpdatePayload.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Payloads; public class UpdatePayload { diff --git a/CollabVMAuthServer/VerifyPayload.cs b/CollabVMAuthServer/HTTP/Payloads/VerifyPayload.cs similarity index 72% rename from CollabVMAuthServer/VerifyPayload.cs rename to CollabVMAuthServer/HTTP/Payloads/VerifyPayload.cs index 2349285..2c4c7d8 100644 --- a/CollabVMAuthServer/VerifyPayload.cs +++ b/CollabVMAuthServer/HTTP/Payloads/VerifyPayload.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Payloads; public class VerifyPayload { diff --git a/CollabVMAuthServer/AuthServerInformation.cs b/CollabVMAuthServer/HTTP/Responses/AuthServerInformation.cs similarity index 82% rename from CollabVMAuthServer/AuthServerInformation.cs rename to CollabVMAuthServer/HTTP/Responses/AuthServerInformation.cs index 9eb7e59..3f87823 100644 --- a/CollabVMAuthServer/AuthServerInformation.cs +++ b/CollabVMAuthServer/HTTP/Responses/AuthServerInformation.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Responses; public class AuthServerInformation { diff --git a/CollabVMAuthServer/JoinResponse.cs b/CollabVMAuthServer/HTTP/Responses/JoinResponse.cs similarity index 80% rename from CollabVMAuthServer/JoinResponse.cs rename to CollabVMAuthServer/HTTP/Responses/JoinResponse.cs index 90c8373..8b7d3a6 100644 --- a/CollabVMAuthServer/JoinResponse.cs +++ b/CollabVMAuthServer/HTTP/Responses/JoinResponse.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Responses; public class JoinResponse { diff --git a/CollabVMAuthServer/LoginResponse.cs b/CollabVMAuthServer/HTTP/Responses/LoginResponse.cs similarity index 82% rename from CollabVMAuthServer/LoginResponse.cs rename to CollabVMAuthServer/HTTP/Responses/LoginResponse.cs index fbf5bee..1cb4f39 100644 --- a/CollabVMAuthServer/LoginResponse.cs +++ b/CollabVMAuthServer/HTTP/Responses/LoginResponse.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Responses; public class LoginResponse { diff --git a/CollabVMAuthServer/LogoutResponse.cs b/CollabVMAuthServer/HTTP/Responses/LogoutResponse.cs similarity index 65% rename from CollabVMAuthServer/LogoutResponse.cs rename to CollabVMAuthServer/HTTP/Responses/LogoutResponse.cs index b0a5e55..cd6762d 100644 --- a/CollabVMAuthServer/LogoutResponse.cs +++ b/CollabVMAuthServer/HTTP/Responses/LogoutResponse.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Responses; public class LogoutResponse { diff --git a/CollabVMAuthServer/RegisterResponse.cs b/CollabVMAuthServer/HTTP/Responses/RegisterResponse.cs similarity index 83% rename from CollabVMAuthServer/RegisterResponse.cs rename to CollabVMAuthServer/HTTP/Responses/RegisterResponse.cs index 51bab1d..c5b58ca 100644 --- a/CollabVMAuthServer/RegisterResponse.cs +++ b/CollabVMAuthServer/HTTP/Responses/RegisterResponse.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Responses; public class RegisterResponse { diff --git a/CollabVMAuthServer/SessionResponse.cs b/CollabVMAuthServer/HTTP/Responses/SessionResponse.cs similarity index 80% rename from CollabVMAuthServer/SessionResponse.cs rename to CollabVMAuthServer/HTTP/Responses/SessionResponse.cs index 6b82101..194b3f5 100644 --- a/CollabVMAuthServer/SessionResponse.cs +++ b/CollabVMAuthServer/HTTP/Responses/SessionResponse.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Responses; public class SessionResponse { diff --git a/CollabVMAuthServer/UpdateResponse.cs b/CollabVMAuthServer/HTTP/Responses/UpdateResponse.cs similarity index 79% rename from CollabVMAuthServer/UpdateResponse.cs rename to CollabVMAuthServer/HTTP/Responses/UpdateResponse.cs index e389d15..4689ef5 100644 --- a/CollabVMAuthServer/UpdateResponse.cs +++ b/CollabVMAuthServer/HTTP/Responses/UpdateResponse.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Responses; public class UpdateResponse { diff --git a/CollabVMAuthServer/VerifyResponse.cs b/CollabVMAuthServer/HTTP/Responses/VerifyResponse.cs similarity index 72% rename from CollabVMAuthServer/VerifyResponse.cs rename to CollabVMAuthServer/HTTP/Responses/VerifyResponse.cs index 0859390..fe6c458 100644 --- a/CollabVMAuthServer/VerifyResponse.cs +++ b/CollabVMAuthServer/HTTP/Responses/VerifyResponse.cs @@ -1,4 +1,4 @@ -namespace Computernewb.CollabVMAuthServer; +namespace Computernewb.CollabVMAuthServer.HTTP.Responses; public class VerifyResponse { diff --git a/CollabVMAuthServer/Routes.cs b/CollabVMAuthServer/Routes.cs index 74fb70e..5e158a1 100644 --- a/CollabVMAuthServer/Routes.cs +++ b/CollabVMAuthServer/Routes.cs @@ -2,6 +2,8 @@ using System.ComponentModel.DataAnnotations; using System.Net; using System.Text.Json; using System.Text.Json.Serialization; +using Computernewb.CollabVMAuthServer.HTTP.Payloads; +using Computernewb.CollabVMAuthServer.HTTP.Responses; using Isopoh.Cryptography.Argon2; using Microsoft.AspNetCore.Http.HttpResults;