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

@@ -3,9 +3,12 @@ using Newtonsoft.Json.Converters;
namespace ModpackUpdater;
public class UpdateInfo
public class UpdateInfo : IActionSetInfos
{
[JsonConverter(typeof(VersionConverter))]
public Version Version { get; set; }
public List<UpdateAction> Actions { get; private set; } = [];
public List<UpdateAction> Actions { get; } = [];
IEnumerable<InstallAction> IActionSetInfos.Actions => Actions.Cast<InstallAction>();
}