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

17 lines
454 B
C#

using Newtonsoft.Json;
using System.ComponentModel;
namespace ModpackUpdater;
public class UpdateInfo : IActionSetInfos
{
[JsonConverter(typeof(Newtonsoft.Json.Converters.VersionConverter))]
public Version Version { get; set; }
[DefaultValue(true)]
public bool IsPublic { get; set; } = true;
public List<UpdateAction> Actions { get; } = [];
IEnumerable<InstallAction> IActionSet.Actions => Actions.Cast<InstallAction>();
}