add GitHub as source & allow inheritance

This commit is contained in:
2024-09-05 15:03:53 +02:00
parent 46179463e1
commit b4f0d43b46
4 changed files with 76 additions and 13 deletions

View File

@@ -1,11 +1,38 @@
namespace ModpackUpdater.Model;
using Newtonsoft.Json;
namespace ModpackUpdater.Model;
public class InstallAction
{
public string Name { get; set; }
public string InheritFrom { get; set; }
public bool IsZip { get; set; }
public string ZipPath { get; set; }
public string DestPath { get; set; }
public string DownloadUrl { get; set; }
public string SourceUrl { get; set; }
public SourceType SourceType { get; set; }
public string SourceOwner { get; set; }
public string SourceName { get; set; }
public string SourceRegex { get; set; }
public string SourceTag { get; set; }
public Side Side { get; set; } = Side.Both;
public bool IsExtra { get; set; }
[JsonProperty, Obsolete]
private string DownloadUrl
{
set => SourceUrl = value;
}
}