make list

This commit is contained in:
2024-09-08 09:12:39 +02:00
parent 19fccd8af9
commit 8087c0539a
10 changed files with 568 additions and 9 deletions

View File

@@ -1,12 +1,21 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel;
namespace ModpackUpdater;
public class UpdateAction : InstallAction
{
[JsonConverter(typeof(StringEnumConverter))]
[DefaultValue(UpdateActionType.Update)]
public UpdateActionType Type { get; set; }
[DefaultValue(null)]
public string SrcPath { get; set; }
[DefaultValue(false)]
public bool IsDirectory { get; set; }
[DefaultValue(null)]
public string InheritFrom { get; set; }
}