finalize model for option sets
This commit is contained in:
@@ -1,9 +1,24 @@
|
||||
namespace ModpackUpdater;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace ModpackUpdater;
|
||||
|
||||
public class InstallOptionSet
|
||||
{
|
||||
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 Multiselect { get; set; }
|
||||
public string DefaultValue { get; set; }
|
||||
|
||||
public List<int> Defaults { get; } = [];
|
||||
|
||||
public List<InstallOption> Options { get; } = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user