wabbajack/Wabbajack.DTOs/DownloadStates/GameFileSource.cs

19 lines
648 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using Wabbajack.DTOs.JsonConverters;
using Wabbajack.Hashing.xxHash64;
using Wabbajack.Paths;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.DTOs.DownloadStates;
[JsonAlias("GameFileSource")]
[JsonName("GameFileSourceDownloader, Wabbajack.Lib")]
public class GameFileSource : ADownloadState
2021-09-27 12:42:46 +00:00
{
2021-10-23 16:51:17 +00:00
public Game Game { get; set; }
public RelativePath GameFile { get; set; }
public Hash Hash { get; set; }
public string GameVersion { get; set; } = "";
public override string TypeName => "GameFileSourceDownloader+State";
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
public override object[] PrimaryKey => new object[]
{Game, GameVersion ?? "0.0.0.0", GameFile.ToString().ToLowerInvariant()};
2021-09-27 12:42:46 +00:00
}