begin application build overhaul

This commit is contained in:
Nathan
2025-12-17 15:34:34 -07:00
parent 5cc6060323
commit 610cdb62a8
23 changed files with 2379 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
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;
[JsonPropertyName("username")]
public string Username { get; set; } = string.Empty;
[JsonPropertyName("renderKey")]
public string RenderKey { get; set; } = string.Empty;
}
public class FlamencoConfig
{
[JsonPropertyName("workerPath")]
public string WorkerPath { get; set; } = string.Empty;
[JsonPropertyName("networkDrives")]
public List<string> NetworkDrives { get; set; } = new();
[JsonPropertyName("networkPaths")]
public List<string> 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<string>();
if (SheepIt != null) types.Add("SheepIt");
if (Flamenco != null) types.Add("Flamenco");
return string.Join(", ", types);
}
}
}