Files
minecraft-modpack-updater/ModpackUpdater/InstallOption.cs
2025-06-27 09:29:57 +02:00

22 lines
555 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;
public List<UpdateAction> UninstallActions { get; } = [];
IEnumerable<InstallAction> IActionSet.Actions => UninstallActions.Cast<InstallAction>();
}