mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2024-12-22 12:28:21 -05:00
refactor: move shared code to Shared directory
This commit is contained in:
parent
92a9177d1f
commit
d302ea46e2
@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -4,7 +4,7 @@ using System.Text.Json;
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.External
|
namespace Minecraft_Realms_Emulator.Modes.External
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
using Minecraft_Realms_Emulator.Requests;
|
using Minecraft_Realms_Emulator.Shared.Requests;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.External
|
namespace Minecraft_Realms_Emulator.Modes.External
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Enums;
|
||||||
using Minecraft_Realms_Emulator.Enums;
|
using Minecraft_Realms_Emulator.Shared.Helpers;
|
||||||
using Minecraft_Realms_Emulator.Helpers;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.External
|
namespace Minecraft_Realms_Emulator.Modes.External
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.External
|
namespace Minecraft_Realms_Emulator.Modes.External
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.External
|
namespace Minecraft_Realms_Emulator.Modes.External
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.External
|
namespace Minecraft_Realms_Emulator.Modes.External
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Enums;
|
||||||
using Minecraft_Realms_Emulator.Enums;
|
using Minecraft_Realms_Emulator.Shared.Helpers;
|
||||||
using Minecraft_Realms_Emulator.Helpers;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.External
|
namespace Minecraft_Realms_Emulator.Modes.External
|
||||||
{
|
{
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Enums;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Helpers;
|
||||||
using Minecraft_Realms_Emulator.Enums;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Helpers;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
using Minecraft_Realms_Emulator.Requests;
|
using Minecraft_Realms_Emulator.Shared.Requests;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.External
|
namespace Minecraft_Realms_Emulator.Modes.External
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Enums;
|
||||||
using Minecraft_Realms_Emulator.Enums;
|
using Minecraft_Realms_Emulator.Shared.Helpers;
|
||||||
using Minecraft_Realms_Emulator.Helpers;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.Realms
|
namespace Minecraft_Realms_Emulator.Modes.Realms
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
using Minecraft_Realms_Emulator.Requests;
|
using Minecraft_Realms_Emulator.Shared.Requests;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Enums;
|
||||||
using Minecraft_Realms_Emulator.Enums;
|
using Minecraft_Realms_Emulator.Shared.Helpers;
|
||||||
using Minecraft_Realms_Emulator.Helpers;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Enums;
|
||||||
using Minecraft_Realms_Emulator.Enums;
|
using Minecraft_Realms_Emulator.Shared.Helpers;
|
||||||
using Minecraft_Realms_Emulator.Helpers;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Enums;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Helpers;
|
||||||
using Minecraft_Realms_Emulator.Enums;
|
|
||||||
using Minecraft_Realms_Emulator.Helpers;
|
|
||||||
using Minecraft_Realms_Emulator.Modes.Realms.Helpers;
|
using Minecraft_Realms_Emulator.Modes.Realms.Helpers;
|
||||||
using Minecraft_Realms_Emulator.Requests;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
|
using Minecraft_Realms_Emulator.Shared.Requests;
|
||||||
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Modes.Realms.Helpers
|
namespace Minecraft_Realms_Emulator.Modes.Realms.Helpers
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Rewrite;
|
using Microsoft.AspNetCore.Rewrite;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Enums;
|
||||||
using Minecraft_Realms_Emulator.Enums;
|
using Minecraft_Realms_Emulator.Shared.Helpers;
|
||||||
using Minecraft_Realms_Emulator.Helpers;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Middlewares;
|
using Minecraft_Realms_Emulator.Shared.Middlewares;
|
||||||
using Npgsql;
|
using Npgsql;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
using Minecraft_Realms_Emulator.Entities;
|
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Responses
|
|
||||||
{
|
|
||||||
public class BackupsResponse
|
|
||||||
{
|
|
||||||
public List<Backup> Backups { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,4 @@
|
|||||||
using Minecraft_Realms_Emulator.Entities;
|
namespace Minecraft_Realms_Emulator.Shared.Attributes
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Attributes
|
|
||||||
{
|
{
|
||||||
[AttributeUsage(AttributeTargets.Method)]
|
[AttributeUsage(AttributeTargets.Method)]
|
||||||
public class CheckActiveSubscription : Attribute
|
public class CheckActiveSubscription : Attribute
|
@ -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)]
|
[AttributeUsage(AttributeTargets.Method)]
|
||||||
public class CheckForWorldAttribute : Attribute
|
public class CheckForWorldAttribute : Attribute
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Attributes
|
namespace Minecraft_Realms_Emulator.Shared.Attributes
|
||||||
{
|
{
|
||||||
[AttributeUsage(AttributeTargets.Method)]
|
[AttributeUsage(AttributeTargets.Method)]
|
||||||
public class CheckRealmOwnerAttribute : Attribute
|
public class CheckRealmOwnerAttribute : Attribute
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Attributes
|
namespace Minecraft_Realms_Emulator.Shared.Attributes
|
||||||
{
|
{
|
||||||
[AttributeUsage(AttributeTargets.Class)]
|
[AttributeUsage(AttributeTargets.Class)]
|
||||||
public class RequireAdminKeyAttribute : Attribute
|
public class RequireAdminKeyAttribute : Attribute
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Attributes
|
namespace Minecraft_Realms_Emulator.Shared.Attributes
|
||||||
{
|
{
|
||||||
[AttributeUsage(AttributeTargets.Class)]
|
[AttributeUsage(AttributeTargets.Class)]
|
||||||
public class RequireMinecraftCookieAttribute : Attribute
|
public class RequireMinecraftCookieAttribute : Attribute
|
@ -1,10 +1,10 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Helpers;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Helpers;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Controllers.Admin
|
namespace Minecraft_Realms_Emulator.Shared.Controllers.Admin
|
||||||
{
|
{
|
||||||
[Route("api/admin/[controller]")]
|
[Route("api/admin/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
@ -1,10 +1,10 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
|
||||||
using Minecraft_Realms_Emulator.Modes.Realms.Helpers;
|
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]")]
|
[Route("api/admin/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
@ -28,7 +28,8 @@ namespace Minecraft_Realms_Emulator.Controllers.Admin
|
|||||||
|
|
||||||
[HttpGet("{wId}")]
|
[HttpGet("{wId}")]
|
||||||
[CheckForWorld]
|
[CheckForWorld]
|
||||||
public ActionResult<World> GetWorld(int wId) {
|
public ActionResult<World> GetWorld(int wId)
|
||||||
|
{
|
||||||
var world = _context.Worlds.ToList().Find(w => w.Id == wId);
|
var world = _context.Worlds.ToList().Find(w => w.Id == wId);
|
||||||
|
|
||||||
return Ok(world);
|
return Ok(world);
|
@ -1,7 +1,7 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
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<DataContext> options) : DbContext(options)
|
public class DataContext(DbContextOptions<DataContext> options) : DbContext(options)
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Entities
|
namespace Minecraft_Realms_Emulator.Shared.Entities
|
||||||
{
|
{
|
||||||
public class Backup
|
public class Backup
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Entities
|
namespace Minecraft_Realms_Emulator.Shared.Entities
|
||||||
{
|
{
|
||||||
[PrimaryKey(nameof(Key))]
|
[PrimaryKey(nameof(Key))]
|
||||||
public class Configuration
|
public class Configuration
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Entities
|
namespace Minecraft_Realms_Emulator.Shared.Entities
|
||||||
{
|
{
|
||||||
public class Connection
|
public class Connection
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Entities
|
namespace Minecraft_Realms_Emulator.Shared.Entities
|
||||||
{
|
{
|
||||||
public class Invite
|
public class Invite
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
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 string RecipeintUUID { get; set; } = string.Empty;
|
||||||
public World World { get; set; }
|
public World World { get; set; }
|
||||||
public DateTime Date { get; set; }
|
public DateTime Date { get; set; }
|
@ -1,6 +1,6 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Entities
|
namespace Minecraft_Realms_Emulator.Shared.Entities
|
||||||
{
|
{
|
||||||
public class Notification
|
public class Notification
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Entities
|
namespace Minecraft_Realms_Emulator.Shared.Entities
|
||||||
{
|
{
|
||||||
public class Player
|
public class Player
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Entities
|
namespace Minecraft_Realms_Emulator.Shared.Entities
|
||||||
{
|
{
|
||||||
public class SeenNotification
|
public class SeenNotification
|
||||||
{
|
{
|
@ -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
|
public class Slot : SlotOptionsRequest
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Entities
|
namespace Minecraft_Realms_Emulator.Shared.Entities
|
||||||
{
|
{
|
||||||
public class Subscription
|
public class Subscription
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Entities
|
namespace Minecraft_Realms_Emulator.Shared.Entities
|
||||||
{
|
{
|
||||||
public class Template
|
public class Template
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Entities
|
namespace Minecraft_Realms_Emulator.Shared.Entities
|
||||||
{
|
{
|
||||||
public class World
|
public class World
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Enums
|
namespace Minecraft_Realms_Emulator.Shared.Enums
|
||||||
{
|
{
|
||||||
public enum CompatibilityEnum
|
public enum CompatibilityEnum
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Enums
|
namespace Minecraft_Realms_Emulator.Shared.Enums
|
||||||
{
|
{
|
||||||
public enum SettingsEnum
|
public enum SettingsEnum
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Enums
|
namespace Minecraft_Realms_Emulator.Shared.Enums
|
||||||
{
|
{
|
||||||
public enum StateEnum
|
public enum StateEnum
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Enums
|
namespace Minecraft_Realms_Emulator.Shared.Enums
|
||||||
{
|
{
|
||||||
public enum SubscriptionTypeEnum
|
public enum SubscriptionTypeEnum
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Enums
|
namespace Minecraft_Realms_Emulator.Shared.Enums
|
||||||
{
|
{
|
||||||
public enum VersionCompatibilityEnum
|
public enum VersionCompatibilityEnum
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Enums
|
namespace Minecraft_Realms_Emulator.Shared.Enums
|
||||||
{
|
{
|
||||||
public enum WorkModeEnum
|
public enum WorkModeEnum
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Enums
|
namespace Minecraft_Realms_Emulator.Shared.Enums
|
||||||
{
|
{
|
||||||
public enum WorldTemplateTypeEnum
|
public enum WorldTemplateTypeEnum
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Enums
|
namespace Minecraft_Realms_Emulator.Shared.Enums
|
||||||
{
|
{
|
||||||
public enum WorldTypeEnum
|
public enum WorldTypeEnum
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Helpers
|
namespace Minecraft_Realms_Emulator.Shared.Helpers
|
||||||
{
|
{
|
||||||
public class ConfigHelper
|
public class ConfigHelper
|
||||||
{
|
{
|
@ -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
|
public class Settings
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Helpers.Config;
|
||||||
using Minecraft_Realms_Emulator.Helpers.Config;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Helpers
|
namespace Minecraft_Realms_Emulator.Shared.Helpers
|
||||||
{
|
{
|
||||||
public class Database
|
public class Database
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Helpers
|
namespace Minecraft_Realms_Emulator.Shared.Helpers
|
||||||
{
|
{
|
||||||
public class MinecraftServerQuery
|
public class MinecraftServerQuery
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Helpers
|
namespace Minecraft_Realms_Emulator.Shared.Helpers
|
||||||
{
|
{
|
||||||
public class MinecraftVersionParser
|
public class MinecraftVersionParser
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Middlewares
|
namespace Minecraft_Realms_Emulator.Shared.Middlewares
|
||||||
{
|
{
|
||||||
public class ActiveSubscriptionMiddleware(RequestDelegate next)
|
public class ActiveSubscriptionMiddleware(RequestDelegate next)
|
||||||
{
|
{
|
@ -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)
|
public class AdminKeyMiddleware(RequestDelegate next)
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
using Minecraft_Realms_Emulator.Responses;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Middlewares
|
namespace Minecraft_Realms_Emulator.Shared.Middlewares
|
||||||
{
|
{
|
||||||
public class CheckForWorldMiddleware(RequestDelegate next)
|
public class CheckForWorldMiddleware(RequestDelegate next)
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using Minecraft_Realms_Emulator.Data;
|
using Minecraft_Realms_Emulator.Shared.Data;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Middlewares
|
namespace Minecraft_Realms_Emulator.Shared.Middlewares
|
||||||
{
|
{
|
||||||
public class CheckRealmOwnerMiddleware(RequestDelegate next)
|
public class CheckRealmOwnerMiddleware(RequestDelegate next)
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using Minecraft_Realms_Emulator.Attributes;
|
using Minecraft_Realms_Emulator.Shared.Attributes;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Middlewares
|
namespace Minecraft_Realms_Emulator.Shared.Middlewares
|
||||||
{
|
{
|
||||||
public class MinecraftCookieMiddleware(RequestDelegate next)
|
public class MinecraftCookieMiddleware(RequestDelegate next)
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Middlewares
|
namespace Minecraft_Realms_Emulator.Shared.Middlewares
|
||||||
{
|
{
|
||||||
public class RouteLoggingMiddleware(RequestDelegate next)
|
public class RouteLoggingMiddleware(RequestDelegate next)
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Requests
|
namespace Minecraft_Realms_Emulator.Shared.Requests
|
||||||
{
|
{
|
||||||
public class PlayerRequest
|
public class PlayerRequest
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Requests
|
namespace Minecraft_Realms_Emulator.Shared.Requests
|
||||||
{
|
{
|
||||||
public class SlotOptionsRequest
|
public class SlotOptionsRequest
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Requests
|
namespace Minecraft_Realms_Emulator.Shared.Requests
|
||||||
{
|
{
|
||||||
public class WorldCreateRequest
|
public class WorldCreateRequest
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Responses
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
{
|
{
|
||||||
public class BackupDownloadResponse
|
public class BackupDownloadResponse
|
||||||
{
|
{
|
@ -0,0 +1,9 @@
|
|||||||
|
using Minecraft_Realms_Emulator.Shared.Entities;
|
||||||
|
|
||||||
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
|
{
|
||||||
|
public class BackupsResponse
|
||||||
|
{
|
||||||
|
public List<Backup> Backups { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Responses
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
{
|
{
|
||||||
public class ErrorResponse
|
public class ErrorResponse
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Responses
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
{
|
{
|
||||||
public class InviteList
|
public class InviteList
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Responses
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
{
|
{
|
||||||
public class LivePlayerListsResponse
|
public class LivePlayerListsResponse
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Responses
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
{
|
{
|
||||||
public class MinecraftPlayerInfo
|
public class MinecraftPlayerInfo
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Responses
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
{
|
{
|
||||||
public class MinecraftServerQueryRepsonse
|
public class MinecraftServerQueryRepsonse
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Responses
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
{
|
{
|
||||||
public class NewsResponse
|
public class NewsResponse
|
||||||
{
|
{
|
@ -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
|
public class NotificationsResponse
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Responses
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
{
|
{
|
||||||
public class OpsResponse
|
public class OpsResponse
|
||||||
{
|
{
|
@ -1,6 +1,4 @@
|
|||||||
using Minecraft_Realms_Emulator.Entities;
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
|
|
||||||
namespace Minecraft_Realms_Emulator.Responses
|
|
||||||
{
|
{
|
||||||
public class ServersResponse
|
public class ServersResponse
|
||||||
{
|
{
|
@ -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
|
public class SlotOptionsResponse : SlotOptionsRequest
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Responses
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
{
|
{
|
||||||
public class SlotResponse
|
public class SlotResponse
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Minecraft_Realms_Emulator.Responses
|
namespace Minecraft_Realms_Emulator.Shared.Responses
|
||||||
{
|
{
|
||||||
public class SubscriptionResponse
|
public class SubscriptionResponse
|
||||||
{
|
{
|
@ -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
|
public class TemplatesResponse
|
||||||
{
|
{
|
@ -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
|
public class WorldResponse : World
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using Microsoft.AspNetCore.Mvc.Testing;
|
using Microsoft.AspNetCore.Mvc.Testing;
|
||||||
using Minecraft_Realms_Emulator.Entities;
|
using Minecraft_Realms_Emulator.Shared.Requests;
|
||||||
using Minecraft_Realms_Emulator.Requests;
|
using Minecraft_Realms_Emulator.Shared.Responses;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user