diff --git a/Minecraft-Realms-Emulator/Migrations/20240202175209_Initial.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240202175209_Initial.Designer.cs index 734c86b..2ce5b6f 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240202175209_Initial.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240202175209_Initial.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240203132410_Subscriptions.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240203132410_Subscriptions.Designer.cs index 4a03f81..0340a23 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240203132410_Subscriptions.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240203132410_Subscriptions.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240211135246_Slots.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240211135246_Slots.Designer.cs index b99784f..799f298 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240211135246_Slots.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240211135246_Slots.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240213104200_Connections.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240213104200_Connections.Designer.cs index ff2e758..6aa4259 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240213104200_Connections.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240213104200_Connections.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240213121346_Subscription_v2.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240213121346_Subscription_v2.Designer.cs index 0a8858b..c3d7acd 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240213121346_Subscription_v2.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240213121346_Subscription_v2.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240214154708_Backups.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240214154708_Backups.Designer.cs index 6881576..97c3500 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240214154708_Backups.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240214154708_Backups.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240218160304_Connections_Id.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240218160304_Connections_Id.Designer.cs index 6c670f8..cce99ca 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240218160304_Connections_Id.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240218160304_Connections_Id.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240220092334_Invites.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240220092334_Invites.Designer.cs index 5ae8fd5..91f3178 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240220092334_Invites.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240220092334_Invites.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240221131108_Players.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240221131108_Players.Designer.cs index 03a631f..6e918df 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240221131108_Players.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240221131108_Players.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240301214442_Configuration.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240301214442_Configuration.Designer.cs index 40c432d..9fb8468 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240301214442_Configuration.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240301214442_Configuration.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240315231009_Subscriptions_StartDate_Readable_Field.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240315231009_Subscriptions_StartDate_Readable_Field.Designer.cs index ec79e39..6226197 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240315231009_Subscriptions_StartDate_Readable_Field.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240315231009_Subscriptions_StartDate_Readable_Field.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240317120329_Worlds_Subscription_field.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240317120329_Worlds_Subscription_field.Designer.cs index 1ec7ffa..7252b12 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240317120329_Worlds_Subscription_field.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240317120329_Worlds_Subscription_field.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240414062222_Configuration_Json.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240414062222_Configuration_Json.Designer.cs index 55479b4..e627b19 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240414062222_Configuration_Json.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240414062222_Configuration_Json.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240421111457_Worlds_Version.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240421111457_Worlds_Version.Designer.cs index fab8e68..a6f7e7c 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240421111457_Worlds_Version.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240421111457_Worlds_Version.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240521071345_Slots_Table.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240521071345_Slots_Table.Designer.cs index 3e0679d..73d15ee 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240521071345_Slots_Table.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240521071345_Slots_Table.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240521080804_World_ActiveVersion_From_Slot.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240521080804_World_ActiveVersion_From_Slot.Designer.cs index c3b0a85..32ccc54 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240521080804_World_ActiveVersion_From_Slot.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240521080804_World_ActiveVersion_From_Slot.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240611172843_Templates.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240611172843_Templates.Designer.cs index 5cee5c6..2db2d70 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240611172843_Templates.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240611172843_Templates.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240611201421_Notifications.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240611201421_Notifications.Designer.cs index 340b779..03c70d6 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240611201421_Notifications.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240611201421_Notifications.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240612072111_SeenNotifications.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240612072111_SeenNotifications.Designer.cs index cfc841e..5d014b7 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240612072111_SeenNotifications.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240612072111_SeenNotifications.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240629161935_Snapshot_Worlds.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240629161935_Snapshot_Worlds.Designer.cs index dcbe2ab..859c070 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240629161935_Snapshot_Worlds.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240629161935_Snapshot_Worlds.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240630120218_Minigames.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240630120218_Minigames.Designer.cs index 894a60f..2e8b5c5 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240630120218_Minigames.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240630120218_Minigames.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/20240630160411_Backup_Slots.Designer.cs b/Minecraft-Realms-Emulator/Migrations/20240630160411_Backup_Slots.Designer.cs index 0217a1d..258f5d6 100644 --- a/Minecraft-Realms-Emulator/Migrations/20240630160411_Backup_Slots.Designer.cs +++ b/Minecraft-Realms-Emulator/Migrations/20240630160411_Backup_Slots.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Migrations/DataContextModelSnapshot.cs b/Minecraft-Realms-Emulator/Migrations/DataContextModelSnapshot.cs index c6b1830..6d5b815 100644 --- a/Minecraft-Realms-Emulator/Migrations/DataContextModelSnapshot.cs +++ b/Minecraft-Realms-Emulator/Migrations/DataContextModelSnapshot.cs @@ -4,7 +4,7 @@ using System.Text.Json; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Minecraft_Realms_Emulator.Data; +using Minecraft_Realms_Emulator.Shared.Data; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/Minecraft-Realms-Emulator/Modes/External/ActivitiesController.cs b/Minecraft-Realms-Emulator/Modes/External/ActivitiesController.cs index d862b77..19cd40d 100644 --- a/Minecraft-Realms-Emulator/Modes/External/ActivitiesController.cs +++ b/Minecraft-Realms-Emulator/Modes/External/ActivitiesController.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.External { diff --git a/Minecraft-Realms-Emulator/Modes/External/InvitesController.cs b/Minecraft-Realms-Emulator/Modes/External/InvitesController.cs index 60fc586..9601511 100644 --- a/Minecraft-Realms-Emulator/Modes/External/InvitesController.cs +++ b/Minecraft-Realms-Emulator/Modes/External/InvitesController.cs @@ -1,10 +1,10 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; -using Minecraft_Realms_Emulator.Requests; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; +using Minecraft_Realms_Emulator.Shared.Requests; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.External { diff --git a/Minecraft-Realms-Emulator/Modes/External/McoController.cs b/Minecraft-Realms-Emulator/Modes/External/McoController.cs index 84d540f..ac6ed7e 100644 --- a/Minecraft-Realms-Emulator/Modes/External/McoController.cs +++ b/Minecraft-Realms-Emulator/Modes/External/McoController.cs @@ -1,9 +1,9 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Enums; -using Minecraft_Realms_Emulator.Helpers; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Enums; +using Minecraft_Realms_Emulator.Shared.Helpers; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.External { diff --git a/Minecraft-Realms-Emulator/Modes/External/NotificationsController.cs b/Minecraft-Realms-Emulator/Modes/External/NotificationsController.cs index ab6212d..d49fb41 100644 --- a/Minecraft-Realms-Emulator/Modes/External/NotificationsController.cs +++ b/Minecraft-Realms-Emulator/Modes/External/NotificationsController.cs @@ -1,8 +1,8 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.External { diff --git a/Minecraft-Realms-Emulator/Modes/External/OpsController.cs b/Minecraft-Realms-Emulator/Modes/External/OpsController.cs index 9ea6af8..05bf1ac 100644 --- a/Minecraft-Realms-Emulator/Modes/External/OpsController.cs +++ b/Minecraft-Realms-Emulator/Modes/External/OpsController.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.External { diff --git a/Minecraft-Realms-Emulator/Modes/External/SubscriptionsController.cs b/Minecraft-Realms-Emulator/Modes/External/SubscriptionsController.cs index 2132304..491b68d 100644 --- a/Minecraft-Realms-Emulator/Modes/External/SubscriptionsController.cs +++ b/Minecraft-Realms-Emulator/Modes/External/SubscriptionsController.cs @@ -1,8 +1,8 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.External { diff --git a/Minecraft-Realms-Emulator/Modes/External/TrialController.cs b/Minecraft-Realms-Emulator/Modes/External/TrialController.cs index 2c05929..1d4bcd6 100644 --- a/Minecraft-Realms-Emulator/Modes/External/TrialController.cs +++ b/Minecraft-Realms-Emulator/Modes/External/TrialController.cs @@ -1,8 +1,8 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Enums; -using Minecraft_Realms_Emulator.Helpers; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Enums; +using Minecraft_Realms_Emulator.Shared.Helpers; +using Minecraft_Realms_Emulator.Shared.Data; namespace Minecraft_Realms_Emulator.Modes.External { diff --git a/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs b/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs index 1267279..0122218 100644 --- a/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs +++ b/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs @@ -1,12 +1,12 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; -using Minecraft_Realms_Emulator.Enums; -using Minecraft_Realms_Emulator.Helpers; -using Minecraft_Realms_Emulator.Requests; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Enums; +using Minecraft_Realms_Emulator.Shared.Helpers; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; +using Minecraft_Realms_Emulator.Shared.Requests; +using Minecraft_Realms_Emulator.Shared.Responses; using Newtonsoft.Json; namespace Minecraft_Realms_Emulator.Modes.External diff --git a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/ActivitiesController.cs b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/ActivitiesController.cs index 96bf19d..bf97d21 100644 --- a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/ActivitiesController.cs +++ b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/ActivitiesController.cs @@ -1,9 +1,9 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Enums; -using Minecraft_Realms_Emulator.Helpers; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Enums; +using Minecraft_Realms_Emulator.Shared.Helpers; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Responses; using Newtonsoft.Json; namespace Minecraft_Realms_Emulator.Modes.Realms diff --git a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/InvitesController.cs b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/InvitesController.cs index 5421411..fdfea83 100644 --- a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/InvitesController.cs +++ b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/InvitesController.cs @@ -1,10 +1,10 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; -using Minecraft_Realms_Emulator.Requests; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; +using Minecraft_Realms_Emulator.Shared.Requests; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers { diff --git a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/McoController.cs b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/McoController.cs index f4f3057..d083167 100644 --- a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/McoController.cs +++ b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/McoController.cs @@ -1,9 +1,9 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Enums; -using Minecraft_Realms_Emulator.Helpers; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Enums; +using Minecraft_Realms_Emulator.Shared.Helpers; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers { diff --git a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/NotificationsController.cs b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/NotificationsController.cs index 6116c22..9fedffb 100644 --- a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/NotificationsController.cs +++ b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/NotificationsController.cs @@ -1,8 +1,8 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers { diff --git a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/OpsController.cs b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/OpsController.cs index 0d1d367..10f3126 100644 --- a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/OpsController.cs +++ b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/OpsController.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers { diff --git a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/SubscriptionsController.cs b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/SubscriptionsController.cs index eaac54d..c0b5f17 100644 --- a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/SubscriptionsController.cs +++ b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/SubscriptionsController.cs @@ -1,8 +1,8 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Responses; namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers { diff --git a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/TrialController.cs b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/TrialController.cs index cd8bf80..3c163b0 100644 --- a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/TrialController.cs +++ b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/TrialController.cs @@ -1,8 +1,8 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Enums; -using Minecraft_Realms_Emulator.Helpers; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Enums; +using Minecraft_Realms_Emulator.Shared.Helpers; +using Minecraft_Realms_Emulator.Shared.Data; namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers { diff --git a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/WorldsController.cs b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/WorldsController.cs index 44c6172..0b722a6 100644 --- a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/WorldsController.cs +++ b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/WorldsController.cs @@ -1,13 +1,13 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; -using Minecraft_Realms_Emulator.Enums; -using Minecraft_Realms_Emulator.Helpers; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Enums; +using Minecraft_Realms_Emulator.Shared.Helpers; using Minecraft_Realms_Emulator.Modes.Realms.Helpers; -using Minecraft_Realms_Emulator.Requests; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; +using Minecraft_Realms_Emulator.Shared.Requests; +using Minecraft_Realms_Emulator.Shared.Responses; using Newtonsoft.Json; using System.Net; using System.Net.Sockets; diff --git a/Minecraft-Realms-Emulator/Modes/Realms/Helpers/DockerHelper.cs b/Minecraft-Realms-Emulator/Modes/Realms/Helpers/DockerHelper.cs index fa3cd72..b70233f 100644 --- a/Minecraft-Realms-Emulator/Modes/Realms/Helpers/DockerHelper.cs +++ b/Minecraft-Realms-Emulator/Modes/Realms/Helpers/DockerHelper.cs @@ -1,4 +1,4 @@ -using Minecraft_Realms_Emulator.Entities; +using Minecraft_Realms_Emulator.Shared.Entities; using System.Diagnostics; namespace Minecraft_Realms_Emulator.Modes.Realms.Helpers diff --git a/Minecraft-Realms-Emulator/Program.cs b/Minecraft-Realms-Emulator/Program.cs index c8f197d..0eff4e9 100644 --- a/Minecraft-Realms-Emulator/Program.cs +++ b/Minecraft-Realms-Emulator/Program.cs @@ -1,9 +1,9 @@ using Microsoft.AspNetCore.Rewrite; using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Enums; -using Minecraft_Realms_Emulator.Helpers; -using Minecraft_Realms_Emulator.Middlewares; +using Minecraft_Realms_Emulator.Shared.Enums; +using Minecraft_Realms_Emulator.Shared.Helpers; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Middlewares; using Npgsql; using System.Diagnostics; using System.Reflection; diff --git a/Minecraft-Realms-Emulator/Responses/BackupsResponse.cs b/Minecraft-Realms-Emulator/Responses/BackupsResponse.cs deleted file mode 100644 index 8c0742e..0000000 --- a/Minecraft-Realms-Emulator/Responses/BackupsResponse.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Minecraft_Realms_Emulator.Entities; - -namespace Minecraft_Realms_Emulator.Responses -{ - public class BackupsResponse - { - public List Backups { get; set; } - } -} diff --git a/Minecraft-Realms-Emulator/Attributes/CheckActiveSubscription.cs b/Minecraft-Realms-Emulator/Shared/Attributes/CheckActiveSubscription.cs similarity index 76% rename from Minecraft-Realms-Emulator/Attributes/CheckActiveSubscription.cs rename to Minecraft-Realms-Emulator/Shared/Attributes/CheckActiveSubscription.cs index 2d11ab6..161341e 100644 --- a/Minecraft-Realms-Emulator/Attributes/CheckActiveSubscription.cs +++ b/Minecraft-Realms-Emulator/Shared/Attributes/CheckActiveSubscription.cs @@ -1,6 +1,4 @@ -using Minecraft_Realms_Emulator.Entities; - -namespace Minecraft_Realms_Emulator.Attributes +namespace Minecraft_Realms_Emulator.Shared.Attributes { [AttributeUsage(AttributeTargets.Method)] public class CheckActiveSubscription : Attribute diff --git a/Minecraft-Realms-Emulator/Attributes/CheckForWorldAttribute.cs b/Minecraft-Realms-Emulator/Shared/Attributes/CheckForWorldAttribute.cs similarity index 66% rename from Minecraft-Realms-Emulator/Attributes/CheckForWorldAttribute.cs rename to Minecraft-Realms-Emulator/Shared/Attributes/CheckForWorldAttribute.cs index c96fa28..942d5d5 100644 --- a/Minecraft-Realms-Emulator/Attributes/CheckForWorldAttribute.cs +++ b/Minecraft-Realms-Emulator/Shared/Attributes/CheckForWorldAttribute.cs @@ -1,6 +1,6 @@ -using Minecraft_Realms_Emulator.Entities; +using Minecraft_Realms_Emulator.Shared.Entities; -namespace Minecraft_Realms_Emulator.Attributes +namespace Minecraft_Realms_Emulator.Shared.Attributes { [AttributeUsage(AttributeTargets.Method)] public class CheckForWorldAttribute : Attribute diff --git a/Minecraft-Realms-Emulator/Attributes/CheckRealmOwnerAttribute.cs b/Minecraft-Realms-Emulator/Shared/Attributes/CheckRealmOwnerAttribute.cs similarity index 81% rename from Minecraft-Realms-Emulator/Attributes/CheckRealmOwnerAttribute.cs rename to Minecraft-Realms-Emulator/Shared/Attributes/CheckRealmOwnerAttribute.cs index b29f66d..cc5efa9 100644 --- a/Minecraft-Realms-Emulator/Attributes/CheckRealmOwnerAttribute.cs +++ b/Minecraft-Realms-Emulator/Shared/Attributes/CheckRealmOwnerAttribute.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Attributes +namespace Minecraft_Realms_Emulator.Shared.Attributes { [AttributeUsage(AttributeTargets.Method)] public class CheckRealmOwnerAttribute : Attribute diff --git a/Minecraft-Realms-Emulator/Attributes/RequireAdminKeyAttribute.cs b/Minecraft-Realms-Emulator/Shared/Attributes/RequireAdminKeyAttribute.cs similarity index 83% rename from Minecraft-Realms-Emulator/Attributes/RequireAdminKeyAttribute.cs rename to Minecraft-Realms-Emulator/Shared/Attributes/RequireAdminKeyAttribute.cs index 1b26b3a..ce06df1 100644 --- a/Minecraft-Realms-Emulator/Attributes/RequireAdminKeyAttribute.cs +++ b/Minecraft-Realms-Emulator/Shared/Attributes/RequireAdminKeyAttribute.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Attributes +namespace Minecraft_Realms_Emulator.Shared.Attributes { [AttributeUsage(AttributeTargets.Class)] public class RequireAdminKeyAttribute : Attribute diff --git a/Minecraft-Realms-Emulator/Attributes/RequireMinecraftCookieAttribute.cs b/Minecraft-Realms-Emulator/Shared/Attributes/RequireMinecraftCookieAttribute.cs similarity index 86% rename from Minecraft-Realms-Emulator/Attributes/RequireMinecraftCookieAttribute.cs rename to Minecraft-Realms-Emulator/Shared/Attributes/RequireMinecraftCookieAttribute.cs index 6bf810f..ba4887c 100644 --- a/Minecraft-Realms-Emulator/Attributes/RequireMinecraftCookieAttribute.cs +++ b/Minecraft-Realms-Emulator/Shared/Attributes/RequireMinecraftCookieAttribute.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Attributes +namespace Minecraft_Realms_Emulator.Shared.Attributes { [AttributeUsage(AttributeTargets.Class)] public class RequireMinecraftCookieAttribute : Attribute diff --git a/Minecraft-Realms-Emulator/Controllers/Admin/ConfigurationController.cs b/Minecraft-Realms-Emulator/Shared/Controllers/Admin/ConfigurationController.cs similarity index 69% rename from Minecraft-Realms-Emulator/Controllers/Admin/ConfigurationController.cs rename to Minecraft-Realms-Emulator/Shared/Controllers/Admin/ConfigurationController.cs index 1dd5af7..801a111 100644 --- a/Minecraft-Realms-Emulator/Controllers/Admin/ConfigurationController.cs +++ b/Minecraft-Realms-Emulator/Shared/Controllers/Admin/ConfigurationController.cs @@ -1,10 +1,10 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; -using Minecraft_Realms_Emulator.Helpers; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Helpers; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; -namespace Minecraft_Realms_Emulator.Controllers.Admin +namespace Minecraft_Realms_Emulator.Shared.Controllers.Admin { [Route("api/admin/[controller]")] [ApiController] diff --git a/Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs b/Minecraft-Realms-Emulator/Shared/Controllers/Admin/ServersController.cs similarity index 89% rename from Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs rename to Minecraft-Realms-Emulator/Shared/Controllers/Admin/ServersController.cs index 345653d..3abbd39 100644 --- a/Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs +++ b/Minecraft-Realms-Emulator/Shared/Controllers/Admin/ServersController.cs @@ -1,10 +1,10 @@ using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; +using Minecraft_Realms_Emulator.Shared.Attributes; using Minecraft_Realms_Emulator.Modes.Realms.Helpers; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; -namespace Minecraft_Realms_Emulator.Controllers.Admin +namespace Minecraft_Realms_Emulator.Shared.Controllers.Admin { [Route("api/admin/[controller]")] [ApiController] @@ -28,7 +28,8 @@ namespace Minecraft_Realms_Emulator.Controllers.Admin [HttpGet("{wId}")] [CheckForWorld] - public ActionResult GetWorld(int wId) { + public ActionResult GetWorld(int wId) + { var world = _context.Worlds.ToList().Find(w => w.Id == wId); return Ok(world); diff --git a/Minecraft-Realms-Emulator/Data/DataContext.cs b/Minecraft-Realms-Emulator/Shared/Data/DataContext.cs similarity index 88% rename from Minecraft-Realms-Emulator/Data/DataContext.cs rename to Minecraft-Realms-Emulator/Shared/Data/DataContext.cs index 563bdf2..05f403a 100644 --- a/Minecraft-Realms-Emulator/Data/DataContext.cs +++ b/Minecraft-Realms-Emulator/Shared/Data/DataContext.cs @@ -1,7 +1,7 @@ using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Entities; +using Minecraft_Realms_Emulator.Shared.Entities; -namespace Minecraft_Realms_Emulator.Data +namespace Minecraft_Realms_Emulator.Shared.Data { public class DataContext(DbContextOptions options) : DbContext(options) { diff --git a/Minecraft-Realms-Emulator/Entities/Backup.cs b/Minecraft-Realms-Emulator/Shared/Entities/Backup.cs similarity index 91% rename from Minecraft-Realms-Emulator/Entities/Backup.cs rename to Minecraft-Realms-Emulator/Shared/Entities/Backup.cs index ec6f7cc..3643f43 100644 --- a/Minecraft-Realms-Emulator/Entities/Backup.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/Backup.cs @@ -1,6 +1,6 @@ using System.Text.Json; -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { public class Backup { diff --git a/Minecraft-Realms-Emulator/Entities/Configuration.cs b/Minecraft-Realms-Emulator/Shared/Entities/Configuration.cs similarity index 86% rename from Minecraft-Realms-Emulator/Entities/Configuration.cs rename to Minecraft-Realms-Emulator/Shared/Entities/Configuration.cs index 54c3aae..8c8bd10 100644 --- a/Minecraft-Realms-Emulator/Entities/Configuration.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/Configuration.cs @@ -1,7 +1,7 @@ using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations.Schema; -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { [PrimaryKey(nameof(Key))] public class Configuration diff --git a/Minecraft-Realms-Emulator/Entities/Connection.cs b/Minecraft-Realms-Emulator/Shared/Entities/Connection.cs similarity index 80% rename from Minecraft-Realms-Emulator/Entities/Connection.cs rename to Minecraft-Realms-Emulator/Shared/Entities/Connection.cs index 2cdce45..3a75916 100644 --- a/Minecraft-Realms-Emulator/Entities/Connection.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/Connection.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { public class Connection { diff --git a/Minecraft-Realms-Emulator/Entities/Invite.cs b/Minecraft-Realms-Emulator/Shared/Entities/Invite.cs similarity index 65% rename from Minecraft-Realms-Emulator/Entities/Invite.cs rename to Minecraft-Realms-Emulator/Shared/Entities/Invite.cs index af4223a..b2c853c 100644 --- a/Minecraft-Realms-Emulator/Entities/Invite.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/Invite.cs @@ -1,9 +1,9 @@ -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { public class Invite { public int Id { get; set; } - public string InvitationId { get; set; }= string.Empty; + public string InvitationId { get; set; } = string.Empty; public string RecipeintUUID { get; set; } = string.Empty; public World World { get; set; } public DateTime Date { get; set; } diff --git a/Minecraft-Realms-Emulator/Entities/Notification.cs b/Minecraft-Realms-Emulator/Shared/Entities/Notification.cs similarity index 92% rename from Minecraft-Realms-Emulator/Entities/Notification.cs rename to Minecraft-Realms-Emulator/Shared/Entities/Notification.cs index 612bd3c..b83d454 100644 --- a/Minecraft-Realms-Emulator/Entities/Notification.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/Notification.cs @@ -1,6 +1,6 @@ using System.Text.Json; -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { public class Notification { diff --git a/Minecraft-Realms-Emulator/Entities/Player.cs b/Minecraft-Realms-Emulator/Shared/Entities/Player.cs similarity index 88% rename from Minecraft-Realms-Emulator/Entities/Player.cs rename to Minecraft-Realms-Emulator/Shared/Entities/Player.cs index af84435..eeb78d9 100644 --- a/Minecraft-Realms-Emulator/Entities/Player.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/Player.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { public class Player { diff --git a/Minecraft-Realms-Emulator/Entities/SeenNotification.cs b/Minecraft-Realms-Emulator/Shared/Entities/SeenNotification.cs similarity index 78% rename from Minecraft-Realms-Emulator/Entities/SeenNotification.cs rename to Minecraft-Realms-Emulator/Shared/Entities/SeenNotification.cs index bf7272c..9311515 100644 --- a/Minecraft-Realms-Emulator/Entities/SeenNotification.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/SeenNotification.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { public class SeenNotification { diff --git a/Minecraft-Realms-Emulator/Entities/Slot.cs b/Minecraft-Realms-Emulator/Shared/Entities/Slot.cs similarity index 64% rename from Minecraft-Realms-Emulator/Entities/Slot.cs rename to Minecraft-Realms-Emulator/Shared/Entities/Slot.cs index 1bc697f..2a64869 100644 --- a/Minecraft-Realms-Emulator/Entities/Slot.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/Slot.cs @@ -1,6 +1,6 @@ -using Minecraft_Realms_Emulator.Requests; +using Minecraft_Realms_Emulator.Shared.Requests; -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { public class Slot : SlotOptionsRequest { diff --git a/Minecraft-Realms-Emulator/Entities/Subscription.cs b/Minecraft-Realms-Emulator/Shared/Entities/Subscription.cs similarity index 84% rename from Minecraft-Realms-Emulator/Entities/Subscription.cs rename to Minecraft-Realms-Emulator/Shared/Entities/Subscription.cs index dfdc03f..639b724 100644 --- a/Minecraft-Realms-Emulator/Entities/Subscription.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/Subscription.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { public class Subscription { diff --git a/Minecraft-Realms-Emulator/Entities/Template.cs b/Minecraft-Realms-Emulator/Shared/Entities/Template.cs similarity index 90% rename from Minecraft-Realms-Emulator/Entities/Template.cs rename to Minecraft-Realms-Emulator/Shared/Entities/Template.cs index 9c7b4f9..bc742fa 100644 --- a/Minecraft-Realms-Emulator/Entities/Template.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/Template.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { public class Template { diff --git a/Minecraft-Realms-Emulator/Entities/World.cs b/Minecraft-Realms-Emulator/Shared/Entities/World.cs similarity index 93% rename from Minecraft-Realms-Emulator/Entities/World.cs rename to Minecraft-Realms-Emulator/Shared/Entities/World.cs index 6063a4b..9eb1e0a 100644 --- a/Minecraft-Realms-Emulator/Entities/World.cs +++ b/Minecraft-Realms-Emulator/Shared/Entities/World.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Entities { public class World { diff --git a/Minecraft-Realms-Emulator/Enums/CompatibilityEnum.cs b/Minecraft-Realms-Emulator/Shared/Enums/CompatibilityEnum.cs similarity index 75% rename from Minecraft-Realms-Emulator/Enums/CompatibilityEnum.cs rename to Minecraft-Realms-Emulator/Shared/Enums/CompatibilityEnum.cs index 4b4f6d0..28a9ac9 100644 --- a/Minecraft-Realms-Emulator/Enums/CompatibilityEnum.cs +++ b/Minecraft-Realms-Emulator/Shared/Enums/CompatibilityEnum.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Enums +namespace Minecraft_Realms_Emulator.Shared.Enums { public enum CompatibilityEnum { diff --git a/Minecraft-Realms-Emulator/Enums/SettingsEnum.cs b/Minecraft-Realms-Emulator/Shared/Enums/SettingsEnum.cs similarity index 77% rename from Minecraft-Realms-Emulator/Enums/SettingsEnum.cs rename to Minecraft-Realms-Emulator/Shared/Enums/SettingsEnum.cs index 8bae65c..e89121b 100644 --- a/Minecraft-Realms-Emulator/Enums/SettingsEnum.cs +++ b/Minecraft-Realms-Emulator/Shared/Enums/SettingsEnum.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Enums +namespace Minecraft_Realms_Emulator.Shared.Enums { public enum SettingsEnum { diff --git a/Minecraft-Realms-Emulator/Enums/StateEnum.cs b/Minecraft-Realms-Emulator/Shared/Enums/StateEnum.cs similarity index 64% rename from Minecraft-Realms-Emulator/Enums/StateEnum.cs rename to Minecraft-Realms-Emulator/Shared/Enums/StateEnum.cs index ddfe23d..2f48d45 100644 --- a/Minecraft-Realms-Emulator/Enums/StateEnum.cs +++ b/Minecraft-Realms-Emulator/Shared/Enums/StateEnum.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Enums +namespace Minecraft_Realms_Emulator.Shared.Enums { public enum StateEnum { diff --git a/Minecraft-Realms-Emulator/Enums/SubscriptionTypeEnum.cs b/Minecraft-Realms-Emulator/Shared/Enums/SubscriptionTypeEnum.cs similarity index 62% rename from Minecraft-Realms-Emulator/Enums/SubscriptionTypeEnum.cs rename to Minecraft-Realms-Emulator/Shared/Enums/SubscriptionTypeEnum.cs index ac176e5..b451885 100644 --- a/Minecraft-Realms-Emulator/Enums/SubscriptionTypeEnum.cs +++ b/Minecraft-Realms-Emulator/Shared/Enums/SubscriptionTypeEnum.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Enums +namespace Minecraft_Realms_Emulator.Shared.Enums { public enum SubscriptionTypeEnum { diff --git a/Minecraft-Realms-Emulator/Enums/VersionCompatibilityEnum.cs b/Minecraft-Realms-Emulator/Shared/Enums/VersionCompatibilityEnum.cs similarity index 67% rename from Minecraft-Realms-Emulator/Enums/VersionCompatibilityEnum.cs rename to Minecraft-Realms-Emulator/Shared/Enums/VersionCompatibilityEnum.cs index 29dcb9f..db1403d 100644 --- a/Minecraft-Realms-Emulator/Enums/VersionCompatibilityEnum.cs +++ b/Minecraft-Realms-Emulator/Shared/Enums/VersionCompatibilityEnum.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Enums +namespace Minecraft_Realms_Emulator.Shared.Enums { public enum VersionCompatibilityEnum { diff --git a/Minecraft-Realms-Emulator/Enums/WorkModeEnum.cs b/Minecraft-Realms-Emulator/Shared/Enums/WorkModeEnum.cs similarity index 60% rename from Minecraft-Realms-Emulator/Enums/WorkModeEnum.cs rename to Minecraft-Realms-Emulator/Shared/Enums/WorkModeEnum.cs index 0a174ac..7a76f76 100644 --- a/Minecraft-Realms-Emulator/Enums/WorkModeEnum.cs +++ b/Minecraft-Realms-Emulator/Shared/Enums/WorkModeEnum.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Enums +namespace Minecraft_Realms_Emulator.Shared.Enums { public enum WorkModeEnum { diff --git a/Minecraft-Realms-Emulator/Enums/WorldTemplateTypeEnum.cs b/Minecraft-Realms-Emulator/Shared/Enums/WorldTemplateTypeEnum.cs similarity index 75% rename from Minecraft-Realms-Emulator/Enums/WorldTemplateTypeEnum.cs rename to Minecraft-Realms-Emulator/Shared/Enums/WorldTemplateTypeEnum.cs index e33bc22..4e60a99 100644 --- a/Minecraft-Realms-Emulator/Enums/WorldTemplateTypeEnum.cs +++ b/Minecraft-Realms-Emulator/Shared/Enums/WorldTemplateTypeEnum.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Enums +namespace Minecraft_Realms_Emulator.Shared.Enums { public enum WorldTemplateTypeEnum { diff --git a/Minecraft-Realms-Emulator/Enums/WorldTypeEnum.cs b/Minecraft-Realms-Emulator/Shared/Enums/WorldTypeEnum.cs similarity index 73% rename from Minecraft-Realms-Emulator/Enums/WorldTypeEnum.cs rename to Minecraft-Realms-Emulator/Shared/Enums/WorldTypeEnum.cs index aeee8d4..ff5c00a 100644 --- a/Minecraft-Realms-Emulator/Enums/WorldTypeEnum.cs +++ b/Minecraft-Realms-Emulator/Shared/Enums/WorldTypeEnum.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Enums +namespace Minecraft_Realms_Emulator.Shared.Enums { public enum WorldTypeEnum { diff --git a/Minecraft-Realms-Emulator/Helpers/Config/ConfigHelper.cs b/Minecraft-Realms-Emulator/Shared/Helpers/Config/ConfigHelper.cs similarity index 87% rename from Minecraft-Realms-Emulator/Helpers/Config/ConfigHelper.cs rename to Minecraft-Realms-Emulator/Shared/Helpers/Config/ConfigHelper.cs index 34e9182..0f7a105 100644 --- a/Minecraft-Realms-Emulator/Helpers/Config/ConfigHelper.cs +++ b/Minecraft-Realms-Emulator/Shared/Helpers/Config/ConfigHelper.cs @@ -1,8 +1,8 @@ -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; using Newtonsoft.Json; -namespace Minecraft_Realms_Emulator.Helpers +namespace Minecraft_Realms_Emulator.Shared.Helpers { public class ConfigHelper { diff --git a/Minecraft-Realms-Emulator/Helpers/Config/Settings.cs b/Minecraft-Realms-Emulator/Shared/Helpers/Config/Settings.cs similarity index 81% rename from Minecraft-Realms-Emulator/Helpers/Config/Settings.cs rename to Minecraft-Realms-Emulator/Shared/Helpers/Config/Settings.cs index d39325b..e98d939 100644 --- a/Minecraft-Realms-Emulator/Helpers/Config/Settings.cs +++ b/Minecraft-Realms-Emulator/Shared/Helpers/Config/Settings.cs @@ -1,6 +1,6 @@ -using Minecraft_Realms_Emulator.Enums; +using Minecraft_Realms_Emulator.Shared.Enums; -namespace Minecraft_Realms_Emulator.Helpers.Config +namespace Minecraft_Realms_Emulator.Shared.Helpers.Config { public class Settings { diff --git a/Minecraft-Realms-Emulator/Helpers/Database.cs b/Minecraft-Realms-Emulator/Shared/Helpers/Database.cs similarity index 82% rename from Minecraft-Realms-Emulator/Helpers/Database.cs rename to Minecraft-Realms-Emulator/Shared/Helpers/Database.cs index f2a12d2..3779bb8 100644 --- a/Minecraft-Realms-Emulator/Helpers/Database.cs +++ b/Minecraft-Realms-Emulator/Shared/Helpers/Database.cs @@ -1,10 +1,10 @@ using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; -using Minecraft_Realms_Emulator.Helpers.Config; +using Minecraft_Realms_Emulator.Shared.Entities; +using Minecraft_Realms_Emulator.Shared.Helpers.Config; +using Minecraft_Realms_Emulator.Shared.Data; using Newtonsoft.Json; -namespace Minecraft_Realms_Emulator.Helpers +namespace Minecraft_Realms_Emulator.Shared.Helpers { public class Database { diff --git a/Minecraft-Realms-Emulator/Helpers/MinecraftServerQuery.cs b/Minecraft-Realms-Emulator/Shared/Helpers/MinecraftServerQuery.cs similarity index 97% rename from Minecraft-Realms-Emulator/Helpers/MinecraftServerQuery.cs rename to Minecraft-Realms-Emulator/Shared/Helpers/MinecraftServerQuery.cs index beeb6d8..db219a9 100644 --- a/Minecraft-Realms-Emulator/Helpers/MinecraftServerQuery.cs +++ b/Minecraft-Realms-Emulator/Shared/Helpers/MinecraftServerQuery.cs @@ -1,9 +1,9 @@ -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Responses; using Newtonsoft.Json; using System.Net.Sockets; using System.Text; -namespace Minecraft_Realms_Emulator.Helpers +namespace Minecraft_Realms_Emulator.Shared.Helpers { public class MinecraftServerQuery { diff --git a/Minecraft-Realms-Emulator/Helpers/MinecraftVersionParser.cs b/Minecraft-Realms-Emulator/Shared/Helpers/MinecraftVersionParser.cs similarity index 98% rename from Minecraft-Realms-Emulator/Helpers/MinecraftVersionParser.cs rename to Minecraft-Realms-Emulator/Shared/Helpers/MinecraftVersionParser.cs index 73dfd8e..01ccd85 100644 --- a/Minecraft-Realms-Emulator/Helpers/MinecraftVersionParser.cs +++ b/Minecraft-Realms-Emulator/Shared/Helpers/MinecraftVersionParser.cs @@ -1,6 +1,6 @@ using System.Text.RegularExpressions; -namespace Minecraft_Realms_Emulator.Helpers +namespace Minecraft_Realms_Emulator.Shared.Helpers { public class MinecraftVersionParser { diff --git a/Minecraft-Realms-Emulator/Middlewares/ActiveSubscriptionMiddleware.cs b/Minecraft-Realms-Emulator/Shared/Middlewares/ActiveSubscriptionMiddleware.cs similarity index 86% rename from Minecraft-Realms-Emulator/Middlewares/ActiveSubscriptionMiddleware.cs rename to Minecraft-Realms-Emulator/Shared/Middlewares/ActiveSubscriptionMiddleware.cs index b8f296d..c4bd8e7 100644 --- a/Minecraft-Realms-Emulator/Middlewares/ActiveSubscriptionMiddleware.cs +++ b/Minecraft-Realms-Emulator/Shared/Middlewares/ActiveSubscriptionMiddleware.cs @@ -1,9 +1,9 @@ using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; -namespace Minecraft_Realms_Emulator.Middlewares +namespace Minecraft_Realms_Emulator.Shared.Middlewares { public class ActiveSubscriptionMiddleware(RequestDelegate next) { diff --git a/Minecraft-Realms-Emulator/Middlewares/AdminKeyMiddleware.cs b/Minecraft-Realms-Emulator/Shared/Middlewares/AdminKeyMiddleware.cs similarity index 88% rename from Minecraft-Realms-Emulator/Middlewares/AdminKeyMiddleware.cs rename to Minecraft-Realms-Emulator/Shared/Middlewares/AdminKeyMiddleware.cs index a89434b..ba8c0d6 100644 --- a/Minecraft-Realms-Emulator/Middlewares/AdminKeyMiddleware.cs +++ b/Minecraft-Realms-Emulator/Shared/Middlewares/AdminKeyMiddleware.cs @@ -1,6 +1,6 @@ -using Minecraft_Realms_Emulator.Attributes; +using Minecraft_Realms_Emulator.Shared.Attributes; -namespace Minecraft_Realms_Emulator.Middlewares +namespace Minecraft_Realms_Emulator.Shared.Middlewares { public class AdminKeyMiddleware(RequestDelegate next) { diff --git a/Minecraft-Realms-Emulator/Middlewares/CheckForWorldMiddleware.cs b/Minecraft-Realms-Emulator/Shared/Middlewares/CheckForWorldMiddleware.cs similarity index 80% rename from Minecraft-Realms-Emulator/Middlewares/CheckForWorldMiddleware.cs rename to Minecraft-Realms-Emulator/Shared/Middlewares/CheckForWorldMiddleware.cs index 6e71b6b..6996459 100644 --- a/Minecraft-Realms-Emulator/Middlewares/CheckForWorldMiddleware.cs +++ b/Minecraft-Realms-Emulator/Shared/Middlewares/CheckForWorldMiddleware.cs @@ -1,9 +1,9 @@ -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; +using Minecraft_Realms_Emulator.Shared.Responses; -namespace Minecraft_Realms_Emulator.Middlewares +namespace Minecraft_Realms_Emulator.Shared.Middlewares { public class CheckForWorldMiddleware(RequestDelegate next) { diff --git a/Minecraft-Realms-Emulator/Middlewares/CheckRealmOwnerMiddleware.cs b/Minecraft-Realms-Emulator/Shared/Middlewares/CheckRealmOwnerMiddleware.cs similarity index 85% rename from Minecraft-Realms-Emulator/Middlewares/CheckRealmOwnerMiddleware.cs rename to Minecraft-Realms-Emulator/Shared/Middlewares/CheckRealmOwnerMiddleware.cs index 74432ae..5f9add0 100644 --- a/Minecraft-Realms-Emulator/Middlewares/CheckRealmOwnerMiddleware.cs +++ b/Minecraft-Realms-Emulator/Shared/Middlewares/CheckRealmOwnerMiddleware.cs @@ -1,9 +1,9 @@ using Microsoft.EntityFrameworkCore; -using Minecraft_Realms_Emulator.Attributes; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; +using Minecraft_Realms_Emulator.Shared.Attributes; +using Minecraft_Realms_Emulator.Shared.Data; +using Minecraft_Realms_Emulator.Shared.Entities; -namespace Minecraft_Realms_Emulator.Middlewares +namespace Minecraft_Realms_Emulator.Shared.Middlewares { public class CheckRealmOwnerMiddleware(RequestDelegate next) { diff --git a/Minecraft-Realms-Emulator/Middlewares/MinecraftCookieMiddleware.cs b/Minecraft-Realms-Emulator/Shared/Middlewares/MinecraftCookieMiddleware.cs similarity index 90% rename from Minecraft-Realms-Emulator/Middlewares/MinecraftCookieMiddleware.cs rename to Minecraft-Realms-Emulator/Shared/Middlewares/MinecraftCookieMiddleware.cs index 1f34861..9dda34a 100644 --- a/Minecraft-Realms-Emulator/Middlewares/MinecraftCookieMiddleware.cs +++ b/Minecraft-Realms-Emulator/Shared/Middlewares/MinecraftCookieMiddleware.cs @@ -1,7 +1,7 @@ -using Minecraft_Realms_Emulator.Attributes; +using Minecraft_Realms_Emulator.Shared.Attributes; using System.Text; -namespace Minecraft_Realms_Emulator.Middlewares +namespace Minecraft_Realms_Emulator.Shared.Middlewares { public class MinecraftCookieMiddleware(RequestDelegate next) { diff --git a/Minecraft-Realms-Emulator/Middlewares/RouteLoggingMiddleware.cs b/Minecraft-Realms-Emulator/Shared/Middlewares/RouteLoggingMiddleware.cs similarity index 86% rename from Minecraft-Realms-Emulator/Middlewares/RouteLoggingMiddleware.cs rename to Minecraft-Realms-Emulator/Shared/Middlewares/RouteLoggingMiddleware.cs index 3fe82a3..c3d60ad 100644 --- a/Minecraft-Realms-Emulator/Middlewares/RouteLoggingMiddleware.cs +++ b/Minecraft-Realms-Emulator/Shared/Middlewares/RouteLoggingMiddleware.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Middlewares +namespace Minecraft_Realms_Emulator.Shared.Middlewares { public class RouteLoggingMiddleware(RequestDelegate next) { diff --git a/Minecraft-Realms-Emulator/Requests/PlayerRequest.cs b/Minecraft-Realms-Emulator/Shared/Requests/PlayerRequest.cs similarity index 87% rename from Minecraft-Realms-Emulator/Requests/PlayerRequest.cs rename to Minecraft-Realms-Emulator/Shared/Requests/PlayerRequest.cs index 20f9c1a..2c6be67 100644 --- a/Minecraft-Realms-Emulator/Requests/PlayerRequest.cs +++ b/Minecraft-Realms-Emulator/Shared/Requests/PlayerRequest.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Requests +namespace Minecraft_Realms_Emulator.Shared.Requests { public class PlayerRequest { diff --git a/Minecraft-Realms-Emulator/Requests/SlotOptionsRequest.cs b/Minecraft-Realms-Emulator/Shared/Requests/SlotOptionsRequest.cs similarity index 91% rename from Minecraft-Realms-Emulator/Requests/SlotOptionsRequest.cs rename to Minecraft-Realms-Emulator/Shared/Requests/SlotOptionsRequest.cs index bfbbe34..ef1df8e 100644 --- a/Minecraft-Realms-Emulator/Requests/SlotOptionsRequest.cs +++ b/Minecraft-Realms-Emulator/Shared/Requests/SlotOptionsRequest.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Requests +namespace Minecraft_Realms_Emulator.Shared.Requests { public class SlotOptionsRequest { diff --git a/Minecraft-Realms-Emulator/Requests/WorldCreateRequest.cs b/Minecraft-Realms-Emulator/Shared/Requests/WorldCreateRequest.cs similarity index 72% rename from Minecraft-Realms-Emulator/Requests/WorldCreateRequest.cs rename to Minecraft-Realms-Emulator/Shared/Requests/WorldCreateRequest.cs index d47a274..65f7b68 100644 --- a/Minecraft-Realms-Emulator/Requests/WorldCreateRequest.cs +++ b/Minecraft-Realms-Emulator/Shared/Requests/WorldCreateRequest.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Requests +namespace Minecraft_Realms_Emulator.Shared.Requests { public class WorldCreateRequest { diff --git a/Minecraft-Realms-Emulator/Responses/BackupDownloadResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/BackupDownloadResponse.cs similarity index 79% rename from Minecraft-Realms-Emulator/Responses/BackupDownloadResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/BackupDownloadResponse.cs index 2146398..d00ec27 100644 --- a/Minecraft-Realms-Emulator/Responses/BackupDownloadResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/BackupDownloadResponse.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class BackupDownloadResponse { diff --git a/Minecraft-Realms-Emulator/Shared/Responses/BackupsResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/BackupsResponse.cs new file mode 100644 index 0000000..bb3d08d --- /dev/null +++ b/Minecraft-Realms-Emulator/Shared/Responses/BackupsResponse.cs @@ -0,0 +1,9 @@ +using Minecraft_Realms_Emulator.Shared.Entities; + +namespace Minecraft_Realms_Emulator.Shared.Responses +{ + public class BackupsResponse + { + public List Backups { get; set; } + } +} diff --git a/Minecraft-Realms-Emulator/Responses/ErrorResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/ErrorResponse.cs similarity index 72% rename from Minecraft-Realms-Emulator/Responses/ErrorResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/ErrorResponse.cs index 304bffc..e127371 100644 --- a/Minecraft-Realms-Emulator/Responses/ErrorResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/ErrorResponse.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class ErrorResponse { diff --git a/Minecraft-Realms-Emulator/Responses/InviteList.cs b/Minecraft-Realms-Emulator/Shared/Responses/InviteList.cs similarity index 88% rename from Minecraft-Realms-Emulator/Responses/InviteList.cs rename to Minecraft-Realms-Emulator/Shared/Responses/InviteList.cs index 949a7bf..b2ce679 100644 --- a/Minecraft-Realms-Emulator/Responses/InviteList.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/InviteList.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class InviteList { diff --git a/Minecraft-Realms-Emulator/Responses/LivePlayerListsResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/LivePlayerListsResponse.cs similarity index 82% rename from Minecraft-Realms-Emulator/Responses/LivePlayerListsResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/LivePlayerListsResponse.cs index 01c78a5..d66647e 100644 --- a/Minecraft-Realms-Emulator/Responses/LivePlayerListsResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/LivePlayerListsResponse.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class LivePlayerListsResponse { diff --git a/Minecraft-Realms-Emulator/Responses/MinecraftPlayerInfo.cs b/Minecraft-Realms-Emulator/Shared/Responses/MinecraftPlayerInfo.cs similarity index 78% rename from Minecraft-Realms-Emulator/Responses/MinecraftPlayerInfo.cs rename to Minecraft-Realms-Emulator/Shared/Responses/MinecraftPlayerInfo.cs index d3915fe..22062bf 100644 --- a/Minecraft-Realms-Emulator/Responses/MinecraftPlayerInfo.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/MinecraftPlayerInfo.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class MinecraftPlayerInfo { diff --git a/Minecraft-Realms-Emulator/Responses/MinecraftServerQueryRepsonse.cs b/Minecraft-Realms-Emulator/Shared/Responses/MinecraftServerQueryRepsonse.cs similarity index 94% rename from Minecraft-Realms-Emulator/Responses/MinecraftServerQueryRepsonse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/MinecraftServerQueryRepsonse.cs index 1b6006e..748bfba 100644 --- a/Minecraft-Realms-Emulator/Responses/MinecraftServerQueryRepsonse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/MinecraftServerQueryRepsonse.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class MinecraftServerQueryRepsonse { diff --git a/Minecraft-Realms-Emulator/Responses/NewsResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/NewsResponse.cs similarity index 65% rename from Minecraft-Realms-Emulator/Responses/NewsResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/NewsResponse.cs index ce8deba..ddbfb59 100644 --- a/Minecraft-Realms-Emulator/Responses/NewsResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/NewsResponse.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class NewsResponse { diff --git a/Minecraft-Realms-Emulator/Responses/NotificationsResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/NotificationsResponse.cs similarity index 69% rename from Minecraft-Realms-Emulator/Responses/NotificationsResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/NotificationsResponse.cs index d8048d3..db34e28 100644 --- a/Minecraft-Realms-Emulator/Responses/NotificationsResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/NotificationsResponse.cs @@ -1,6 +1,6 @@ -using Minecraft_Realms_Emulator.Entities; +using Minecraft_Realms_Emulator.Shared.Entities; -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class NotificationsResponse { diff --git a/Minecraft-Realms-Emulator/Responses/OpsResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/OpsResponse.cs similarity index 61% rename from Minecraft-Realms-Emulator/Responses/OpsResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/OpsResponse.cs index 48e5827..5a484be 100644 --- a/Minecraft-Realms-Emulator/Responses/OpsResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/OpsResponse.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class OpsResponse { diff --git a/Minecraft-Realms-Emulator/Responses/ServersResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/ServersResponse.cs similarity index 53% rename from Minecraft-Realms-Emulator/Responses/ServersResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/ServersResponse.cs index 01c3e96..5c46f30 100644 --- a/Minecraft-Realms-Emulator/Responses/ServersResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/ServersResponse.cs @@ -1,6 +1,4 @@ -using Minecraft_Realms_Emulator.Entities; - -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class ServersResponse { diff --git a/Minecraft-Realms-Emulator/Responses/SlotOptionsResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/SlotOptionsResponse.cs similarity index 56% rename from Minecraft-Realms-Emulator/Responses/SlotOptionsResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/SlotOptionsResponse.cs index 287ff59..fd7377d 100644 --- a/Minecraft-Realms-Emulator/Responses/SlotOptionsResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/SlotOptionsResponse.cs @@ -1,6 +1,6 @@ -using Minecraft_Realms_Emulator.Requests; +using Minecraft_Realms_Emulator.Shared.Requests; -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class SlotOptionsResponse : SlotOptionsRequest { diff --git a/Minecraft-Realms-Emulator/Responses/SlotResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/SlotResponse.cs similarity index 71% rename from Minecraft-Realms-Emulator/Responses/SlotResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/SlotResponse.cs index 27d8e3d..4d2c738 100644 --- a/Minecraft-Realms-Emulator/Responses/SlotResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/SlotResponse.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class SlotResponse { diff --git a/Minecraft-Realms-Emulator/Responses/SubscriptionResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/SubscriptionResponse.cs similarity index 77% rename from Minecraft-Realms-Emulator/Responses/SubscriptionResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/SubscriptionResponse.cs index 59fd82f..6555819 100644 --- a/Minecraft-Realms-Emulator/Responses/SubscriptionResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/SubscriptionResponse.cs @@ -1,4 +1,4 @@ -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class SubscriptionResponse { diff --git a/Minecraft-Realms-Emulator/Responses/TemplatesResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/TemplatesResponse.cs similarity index 68% rename from Minecraft-Realms-Emulator/Responses/TemplatesResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/TemplatesResponse.cs index faf21f4..6bde6bb 100644 --- a/Minecraft-Realms-Emulator/Responses/TemplatesResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/TemplatesResponse.cs @@ -1,6 +1,6 @@ -using Minecraft_Realms_Emulator.Entities; +using Minecraft_Realms_Emulator.Shared.Entities; -namespace Minecraft_Realms_Emulator.Responses +namespace Minecraft_Realms_Emulator.Shared.Responses { public class TemplatesResponse { diff --git a/Minecraft-Realms-Emulator/Responses/WorldResponse.cs b/Minecraft-Realms-Emulator/Shared/Responses/WorldResponse.cs similarity index 87% rename from Minecraft-Realms-Emulator/Responses/WorldResponse.cs rename to Minecraft-Realms-Emulator/Shared/Responses/WorldResponse.cs index 4c496b6..3c3fc8f 100644 --- a/Minecraft-Realms-Emulator/Responses/WorldResponse.cs +++ b/Minecraft-Realms-Emulator/Shared/Responses/WorldResponse.cs @@ -1,6 +1,6 @@ -using Minecraft_Realms_Emulator.Responses; +using Minecraft_Realms_Emulator.Shared.Entities; -namespace Minecraft_Realms_Emulator.Entities +namespace Minecraft_Realms_Emulator.Shared.Responses { public class WorldResponse : World { diff --git a/UnitTests/WorldsControllerTests.cs b/UnitTests/WorldsControllerTests.cs index 0ea035a..fab1bae 100644 --- a/UnitTests/WorldsControllerTests.cs +++ b/UnitTests/WorldsControllerTests.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Mvc.Testing; -using Minecraft_Realms_Emulator.Entities; -using Minecraft_Realms_Emulator.Requests; +using Minecraft_Realms_Emulator.Shared.Requests; +using Minecraft_Realms_Emulator.Shared.Responses; using Newtonsoft.Json; using System.Text;