Files
minecraft-modpack-updater/ModpackUpdater/UpdateAction.cs
2024-09-25 12:08:38 +02:00

21 lines
534 B
C#

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