Implemented server list and power state display

This commit is contained in:
2024-12-28 17:24:38 +01:00
parent 92e9f42fbc
commit 87e4172149
11 changed files with 514 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
namespace MoonlightServers.Shared.Http.Responses.User.Allocations;
public class AllocationDetailResponse
{
public int Id { get; set; }
public string IpAddress { get; set; }
public int Port { get; set; }
}

View File

@@ -0,0 +1,15 @@
using MoonlightServers.Shared.Http.Responses.User.Allocations;
namespace MoonlightServers.Shared.Http.Responses.Users.Servers;
public class ServerDetailResponse
{
public int Id { get; set; }
public string Name { get; set; }
public string NodeName { get; set; }
public string StarName { get; set; }
public AllocationDetailResponse[] Allocations { get; set; }
}

View File

@@ -0,0 +1,8 @@
using MoonlightServers.Shared.Enums;
namespace MoonlightServers.Shared.Http.Responses.Users.Servers;
public class ServerStatusResponse
{
public ServerPowerState PowerState { get; set; }
}