add modloader to modpackconfig

This commit is contained in:
2024-10-03 11:30:31 +02:00
parent a329d21feb
commit 6a0bf70e97

View File

@@ -1,17 +1,29 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace ModpackUpdater;
public class ModpackConfig
{
public bool Maintenance { get; set; }
public string Name { get; set; }
public string UpdateUrl { get; set; }
public string InstallUrl { get; set; }
public string UnleashApiUrl { get; set; }
public string UnleashInstanceId { get; set; }
public bool PreferDirectLinks { get; set; }
public string MinecraftVersion { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public ModLoader ModLoader { get; set; }
[JsonIgnore]
public string ConfigUrl { get; set; }