17 lines
459 B
C#
17 lines
459 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> IActionSetInfos.Actions => Actions.Cast<InstallAction>();
|
|
} |