Started implementing star crud
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace MoonlightServers.Shared.Http.Responses.Admin.StarDockerImages;
|
||||
|
||||
public class StarDockerImageDetailResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string DisplayName { get; set; }
|
||||
public string Identifier { get; set; }
|
||||
public bool AutoPulling { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using MoonlightServers.Shared.Enums;
|
||||
|
||||
namespace MoonlightServers.Shared.Http.Responses.Admin.StarVariables;
|
||||
|
||||
public class StarVariableDetailResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
public string Key { get; set; }
|
||||
public string DefaultValue { get; set; }
|
||||
|
||||
public bool AllowViewing { get; set; }
|
||||
public bool AllowEditing { get; set; }
|
||||
|
||||
public StarVariableType Type { get; set; }
|
||||
public string? Filter { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using MoonlightServers.Shared.Http.Responses.Admin.StarDockerImages;
|
||||
using MoonlightServers.Shared.Http.Responses.Admin.StarVariables;
|
||||
|
||||
namespace MoonlightServers.Shared.Http.Responses.Admin.Stars;
|
||||
|
||||
public class StarDetailResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
// References
|
||||
public StarVariableDetailResponse[] Variables { get; set; }
|
||||
public StarDockerImageDetailResponse[] DockerImages { get; set; }
|
||||
|
||||
// Meta
|
||||
public string Name { get; set; }
|
||||
public string Author { get; set; }
|
||||
public string? UpdateUrl { get; set; }
|
||||
public string? DonateUrl { get; set; }
|
||||
|
||||
// Start and stop
|
||||
public string StartupCommand { get; set; }
|
||||
public string StopCommand { get; set; }
|
||||
public string OnlineDetection { get; set; }
|
||||
|
||||
// Install
|
||||
public string InstallShell { get; set; }
|
||||
public string InstallDockerImage { get; set; }
|
||||
public string InstallScript { get; set; }
|
||||
|
||||
// Misc
|
||||
public int RequiredAllocations { get; set; }
|
||||
public bool AllowDockerImageChange { get; set; }
|
||||
public string ParseConfiguration { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user