Files
minecraft-modpack-updater/ModpackUpdater/InstallOption.cs
2025-06-27 11:24:53 +02:00

25 lines
615 B
C#

using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel;
namespace ModpackUpdater;
public class InstallOption : IActionSet
{
public string Id { get; set; }
[DefaultValue(null)]
public string Description { get; set; }
[DefaultValue(Side.Both)]
[JsonConverter(typeof(StringEnumConverter))]
public Side Side { get; set; } = Side.Both;
[DefaultValue(false)]
public bool Default { get; }
public List<UpdateAction> UninstallActions { get; } = [];
IEnumerable<InstallAction> IActionSet.Actions => UninstallActions.Cast<InstallAction>();
}