From b48f3df4e2d394c5211b691b0797d96a57a5ad87 Mon Sep 17 00:00:00 2001 From: jvyden Date: Sat, 14 May 2022 23:42:30 -0400 Subject: [PATCH] Move API-specific responses to API project --- ProjectLighthouse.Servers.API/Controllers/SlotEndpoints.cs | 1 + .../Controllers/StatisticsEndpoints.cs | 2 +- .../Responses}/MinimalSlot.cs | 5 ++++- .../Responses}/StatisticsResponse.cs | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) rename {ProjectLighthouse/Types/Levels => ProjectLighthouse.Servers.API/Responses}/MinimalSlot.cs (81%) rename {ProjectLighthouse/Types/Api => ProjectLighthouse.Servers.API/Responses}/StatisticsResponse.cs (78%) diff --git a/ProjectLighthouse.Servers.API/Controllers/SlotEndpoints.cs b/ProjectLighthouse.Servers.API/Controllers/SlotEndpoints.cs index fb880953..1951024b 100644 --- a/ProjectLighthouse.Servers.API/Controllers/SlotEndpoints.cs +++ b/ProjectLighthouse.Servers.API/Controllers/SlotEndpoints.cs @@ -1,4 +1,5 @@ #nullable enable +using LBPUnion.ProjectLighthouse.Servers.API.Responses; using LBPUnion.ProjectLighthouse.Types; using LBPUnion.ProjectLighthouse.Types.Levels; using LBPUnion.ProjectLighthouse.Types.Settings; diff --git a/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs b/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs index 046681c7..072f7423 100644 --- a/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs +++ b/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs @@ -1,6 +1,6 @@ using LBPUnion.ProjectLighthouse.Helpers; +using LBPUnion.ProjectLighthouse.Servers.API.Responses; using LBPUnion.ProjectLighthouse.Types; -using LBPUnion.ProjectLighthouse.Types.Api; using Microsoft.AspNetCore.Mvc; namespace LBPUnion.ProjectLighthouse.Servers.API.Controllers; diff --git a/ProjectLighthouse/Types/Levels/MinimalSlot.cs b/ProjectLighthouse.Servers.API/Responses/MinimalSlot.cs similarity index 81% rename from ProjectLighthouse/Types/Levels/MinimalSlot.cs rename to ProjectLighthouse.Servers.API/Responses/MinimalSlot.cs index 4778389f..2de00515 100644 --- a/ProjectLighthouse/Types/Levels/MinimalSlot.cs +++ b/ProjectLighthouse.Servers.API/Responses/MinimalSlot.cs @@ -1,4 +1,7 @@ -namespace LBPUnion.ProjectLighthouse.Types.Levels; +using LBPUnion.ProjectLighthouse.Types; +using LBPUnion.ProjectLighthouse.Types.Levels; + +namespace LBPUnion.ProjectLighthouse.Servers.API.Responses; public struct MinimalSlot { diff --git a/ProjectLighthouse/Types/Api/StatisticsResponse.cs b/ProjectLighthouse.Servers.API/Responses/StatisticsResponse.cs similarity index 78% rename from ProjectLighthouse/Types/Api/StatisticsResponse.cs rename to ProjectLighthouse.Servers.API/Responses/StatisticsResponse.cs index 79f443f7..8c4464a4 100644 --- a/ProjectLighthouse/Types/Api/StatisticsResponse.cs +++ b/ProjectLighthouse.Servers.API/Responses/StatisticsResponse.cs @@ -1,4 +1,4 @@ -namespace LBPUnion.ProjectLighthouse.Types.Api; +namespace LBPUnion.ProjectLighthouse.Servers.API.Responses; public class StatisticsResponse {