1
0
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-09-19 07:52:52 -04:00

chrore: group mymc api to one directory

This commit is contained in:
CyberL1 2024-04-20 11:37:26 +02:00
parent 31bc0663a6
commit c536831faf
4 changed files with 11 additions and 10 deletions

View File

@ -0,0 +1,7 @@
namespace Minecraft_Realms_Emulator.MyMcAPI.Responses
{
public class HelloResponse
{
public string Message { get; set; } = string.Empty;
}
}

View File

@ -1,6 +1,6 @@
using Minecraft_Realms_Emulator.MyMcAPIResponses; using Minecraft_Realms_Emulator.MyMcAPI.Responses;
namespace Minecraft_Realms_Emulator.Helpers namespace Minecraft_Realms_Emulator.MyMcAPI
{ {
public class MyMcAPI public class MyMcAPI
{ {
@ -15,7 +15,7 @@ namespace Minecraft_Realms_Emulator.Helpers
public async void GetHello() public async void GetHello()
{ {
var response = await httpClient.GetFromJsonAsync<MyMcHelloResponse>("hello"); var response = await httpClient.GetFromJsonAsync<HelloResponse>("hello");
Console.WriteLine(response.Message); Console.WriteLine(response.Message);
} }
} }

View File

@ -1,7 +0,0 @@
namespace Minecraft_Realms_Emulator.MyMcAPIResponses
{
public class MyMcHelloResponse
{
public string Message { get; set; } = string.Empty;
}
}

View File

@ -2,6 +2,7 @@ using Microsoft.EntityFrameworkCore;
using Minecraft_Realms_Emulator.Data; using Minecraft_Realms_Emulator.Data;
using Minecraft_Realms_Emulator.Helpers; using Minecraft_Realms_Emulator.Helpers;
using Minecraft_Realms_Emulator.Middlewares; using Minecraft_Realms_Emulator.Middlewares;
using Minecraft_Realms_Emulator.MyMcAPI;
using Npgsql; using Npgsql;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);