add GitHub as source & allow inheritance
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
7
ModpackUpdater.Model/SourceType.cs
Normal file
7
ModpackUpdater.Model/SourceType.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace ModpackUpdater.Model;
|
||||
|
||||
public enum SourceType
|
||||
{
|
||||
DirectLink,
|
||||
GitHub,
|
||||
}
|
||||
Reference in New Issue
Block a user