Files
Servers/MoonlightServers.Shared/Admin/Templates/UpdateLifecycleConfigDto.cs

22 lines
544 B
C#

using System.ComponentModel.DataAnnotations;
namespace MoonlightServers.Shared.Admin.Templates;
public class UpdateLifecycleConfigDto
{
public List<UpdateStartupCommandDto> StartupCommands { get; set; } = [];
[Required]
public string StopCommand { get; set; } = string.Empty;
public List<string> OnlineLogPatterns { get; set; } = [];
}
public class UpdateStartupCommandDto
{
[Required]
public string Command { get; set; } = string.Empty;
[Required]
public string DisplayName { get; set; } = string.Empty;
}