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

@@ -1,33 +1,44 @@
using Newtonsoft.Json;
using System.ComponentModel;
namespace ModpackUpdater;
public class InstallAction
{
[DefaultValue(null)]
public string Name { get; set; }
public string InheritFrom { get; set; }
[DefaultValue(false)]
public bool IsZip { get; set; }
[DefaultValue(null)]
public string ZipPath { get; set; }
[DefaultValue(null)]
public string DestPath { get; set; }
[DefaultValue(null)]
public string SourceUrl { get; set; }
[DefaultValue(SourceType.DirectLink)]
public SourceType SourceType { get; set; }
[DefaultValue(null)]
public string SourceOwner { get; set; }
[DefaultValue(null)]
public string SourceName { get; set; }
[DefaultValue(null)]
public string SourceRegex { get; set; }
[DefaultValue(null)]
public string SourceTag { get; set; }
[DefaultValue(Side.Both)]
public Side Side { get; set; } = Side.Both;
[DefaultValue(false)]
public bool IsExtra { get; set; }
[JsonProperty, Obsolete]