allow curseforge and modrinth as source

This commit is contained in:
2024-09-22 09:41:09 +02:00
parent 7e5acd413e
commit bc6c483ba6
8 changed files with 54 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel;
namespace ModpackUpdater;
@@ -27,6 +28,7 @@ public class InstallAction
public string SourceUrl { get; set; }
[DefaultValue(SourceType.DirectLink)]
[JsonConverter(typeof(StringEnumConverter))]
public SourceType SourceType { get; set; }
[DefaultValue(null)]
@@ -42,6 +44,7 @@ public class InstallAction
public string SourceTag { get; set; }
[DefaultValue(Side.Both)]
[JsonConverter(typeof(StringEnumConverter))]
public Side Side { get; set; } = Side.Both;
[DefaultValue(false)]