mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
35 lines
999 B
C#
35 lines
999 B
C#
using System;
|
|
using System.Text.Json.Serialization;
|
|
using System.Threading.Tasks;
|
|
using Wabbajack.DTOs.JsonConverters;
|
|
|
|
namespace Wabbajack.DTOs.DownloadStates;
|
|
|
|
[JsonAlias("Nexus")]
|
|
[JsonName("NexusDownloader, Wabbajack.Lib")]
|
|
public class Nexus : ADownloadState, IMetaState
|
|
{
|
|
[JsonPropertyName("GameName")] public Game Game { get; set; }
|
|
public long ModID { get; set; }
|
|
public long FileID { get; set; }
|
|
|
|
public override string TypeName => "NexusDownloader+State";
|
|
public override object[] PrimaryKey => new object[] {Game, ModID, FileID};
|
|
public string? Name { get; set; }
|
|
|
|
public string? Author { get; set; }
|
|
|
|
public string? Version { get; set; }
|
|
|
|
public Uri? ImageURL { get; set; }
|
|
|
|
public bool IsNSFW { get; set; }
|
|
|
|
public string? Description { get; set; }
|
|
public Uri? LinkUrl => new($"https://www.nexusmods.com/{Game.MetaData().NexusName}/mods/{ModID}");
|
|
|
|
public Task<bool> LoadMetaData()
|
|
{
|
|
return Task.FromResult(false);
|
|
}
|
|
} |