using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; namespace UnifiedFarmLauncher.Models { public class SheepItConfig { [JsonPropertyName("gpu")] public string Gpu { get; set; } = string.Empty; } public class FlamencoConfig { [JsonPropertyName("networkDrives")] public List NetworkDrives { get; set; } = new(); [JsonPropertyName("networkPaths")] public List NetworkPaths { get; set; } = new(); } public class WorkerTypeConfig { [JsonPropertyName("sheepit")] public SheepItConfig? SheepIt { get; set; } [JsonPropertyName("flamenco")] public FlamencoConfig? Flamenco { get; set; } public override string ToString() { var types = new List(); if (SheepIt != null) types.Add("SheepIt"); if (Flamenco != null) types.Add("Flamenco"); return string.Join(", ", types); } } }