This commit is contained in:
2024-06-20 06:30:24 +02:00
parent 00de4d8708
commit c31cc3aa20
6 changed files with 43 additions and 12 deletions

View File

@@ -6,4 +6,5 @@ public class InstallAction
public string ZipPath { get; set; }
public string DestPath { get; set; }
public string DownloadUrl { get; set; }
public Side Side { get; set; } = Side.Both;
}

View File

@@ -0,0 +1,12 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace ModpackUpdater.Model;
[JsonConverter(typeof(StringEnumConverter)), Flags]
public enum Side
{
Client = 1,
Server = 2,
Both = Client | Server,
}