24 lines
571 B
C#
24 lines
571 B
C#
|
|
using System.Text.Json.Serialization;
|
||
|
|
|
||
|
|
namespace UnifiedFarmLauncher.Models
|
||
|
|
{
|
||
|
|
public class WorkerConfig
|
||
|
|
{
|
||
|
|
[JsonPropertyName("id")]
|
||
|
|
public int Id { get; set; }
|
||
|
|
|
||
|
|
[JsonPropertyName("name")]
|
||
|
|
public string Name { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
[JsonPropertyName("enabled")]
|
||
|
|
public bool Enabled { get; set; } = true;
|
||
|
|
|
||
|
|
[JsonPropertyName("ssh")]
|
||
|
|
public SshConfig Ssh { get; set; } = new();
|
||
|
|
|
||
|
|
[JsonPropertyName("workerTypes")]
|
||
|
|
public WorkerTypeConfig WorkerTypes { get; set; } = new();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|