mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-11-22 05:58:21 -05:00
chrore: group mymc api to one directory
This commit is contained in:
parent
31bc0663a6
commit
c536831faf
7
MyMcRealms/MyMcAPI/Responses/HelloResponse.cs
Normal file
7
MyMcRealms/MyMcAPI/Responses/HelloResponse.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace Minecraft_Realms_Emulator.MyMcAPI.Responses
|
||||
{
|
||||
public class HelloResponse
|
||||
{
|
||||
public string Message { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
@ -15,7 +15,7 @@ namespace Minecraft_Realms_Emulator.Helpers
|
||||
|
||||
public async void GetHello()
|
||||
{
|
||||
var response = await httpClient.GetFromJsonAsync<MyMcHelloResponse>("hello");
|
||||
var response = await httpClient.GetFromJsonAsync<HelloResponse>("hello");
|
||||
Console.WriteLine(response.Message);
|
||||
}
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
namespace Minecraft_Realms_Emulator.MyMcAPIResponses
|
||||
{
|
||||
public class MyMcHelloResponse
|
||||
{
|
||||
public string Message { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
using Minecraft_Realms_Emulator.Data;
|
||||
using Minecraft_Realms_Emulator.Helpers;
|
||||
using Minecraft_Realms_Emulator.Middlewares;
|
||||
using Minecraft_Realms_Emulator.MyMcAPI;
|
||||
using Npgsql;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
Loading…
Reference in New Issue
Block a user