Files
minecraft-modpack-updater/ModpackUpdater/InstallAction.cs
2024-09-08 09:12:39 +02:00

49 lines
1.0 KiB
C#

using Newtonsoft.Json;
using System.ComponentModel;
namespace ModpackUpdater;
public class InstallAction
{
[DefaultValue(null)]
public string Name { get; set; }
[DefaultValue(false)]
public bool IsZip { get; set; }
[DefaultValue(null)]
public string ZipPath { get; set; }
[DefaultValue(null)]
public string DestPath { get; set; }
[DefaultValue(null)]
public string SourceUrl { get; set; }
[DefaultValue(SourceType.DirectLink)]
public SourceType SourceType { get; set; }
[DefaultValue(null)]
public string SourceOwner { get; set; }
[DefaultValue(null)]
public string SourceName { get; set; }
[DefaultValue(null)]
public string SourceRegex { get; set; }
[DefaultValue(null)]
public string SourceTag { get; set; }
[DefaultValue(Side.Both)]
public Side Side { get; set; } = Side.Both;
[DefaultValue(false)]
public bool IsExtra { get; set; }
[JsonProperty, Obsolete]
private string DownloadUrl
{
set => SourceUrl = value;
}
}