LANCommander/LANCommander.SDK/Models/Server.cs
2024-07-04 16:34:30 -05:00

31 lines
1.2 KiB
C#

using LANCommander.SDK.Enums;
using System.Collections.Generic;
namespace LANCommander.SDK.Models
{
public class Server : BaseModel
{
public string Name { get; set; } = "";
public string Path { get; set; } = "";
public string Arguments { get; set; } = "";
public string WorkingDirectory { get; set; } = "";
public string OnStartScriptPath { get; set; } = "";
public string OnStopScriptPath { get; set; } = "";
public string Host { get; set; }
public int Port { get; set; }
public bool UseShellExecute { get; set; }
public ProcessTerminationMethod ProcessTerminationMethod { get; set; }
public bool Autostart { get; set; }
public ServerAutostartMethod AutostartMethod { get; set; }
public int AutostartDelay { get; set; }
public virtual Game Game { get; set; }
public virtual IEnumerable<ServerConsole> ServerConsoles { get; set; }
public virtual IEnumerable<ServerHttpPath> HttpPaths { get; set; }
public virtual IEnumerable<Script> Scripts { get; set; }
public virtual IEnumerable<Action> Actions { get; set; }
}
}