a lot of work

This commit is contained in:
2025-11-15 17:17:52 +01:00
parent 336b6ad1fd
commit b9ddc20b7d
42 changed files with 1453 additions and 3346 deletions

View File

@@ -8,41 +8,41 @@ namespace ModpackUpdater;
public class InstallAction
{
[DefaultValue(null)]
public string Id { get; set; }
public string? Id { get; set; }
[DefaultValue(null)]
public string Name { get; set; }
public string? Name { get; set; }
[DefaultValue(null)]
public string Website { get; set; }
public string? Website { get; set; }
[DefaultValue(false)]
public bool IsZip { get; set; }
[DefaultValue(null)]
public string ZipPath { get; set; }
public string? ZipPath { get; set; }
[DefaultValue(null)]
public string DestPath { get; set; }
public string? DestPath { get; set; }
[DefaultValue(null)]
public string SourceUrl { get; set; }
public string? SourceUrl { get; set; }
[DefaultValue(SourceType.DirectLink)]
[JsonConverter(typeof(StringEnumConverter))]
public SourceType SourceType { get; set; }
[DefaultValue(null)]
public string SourceOwner { get; set; }
public string? SourceOwner { get; set; }
[DefaultValue(null)]
public string SourceName { get; set; }
public string? SourceName { get; set; }
[DefaultValue(null)]
public string SourceRegex { get; set; }
public string? SourceRegex { get; set; }
[DefaultValue(null)]
public string SourceTag { get; set; }
public string? SourceTag { get; set; }
[DefaultValue(Side.Both)]
[JsonConverter(typeof(StringEnumConverter))]
@@ -52,7 +52,7 @@ public class InstallAction
public bool IsExtra { get; set; }
[DefaultValue(null)]
public string TargetOption { get; set; }
public string? TargetOption { get; set; }
[JsonProperty, Obsolete]
private string DownloadUrl