wabbajack/Wabbajack.DTOs/DownloadStates/GameFileSource.cs
2021-09-27 06:42:46 -06:00

20 lines
700 B
C#

using Wabbajack.DTOs.JsonConverters;
using Wabbajack.Hashing.xxHash64;
using Wabbajack.Paths;
namespace Wabbajack.DTOs.DownloadStates
{
[JsonAlias("GameFileSource")]
[JsonName("GameFileSourceDownloader, Wabbajack.Lib")]
public class GameFileSource : ADownloadState
{
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";
public override object[] PrimaryKey => new object[]
{ Game, GameVersion ?? "0.0.0.0", GameFile.ToString().ToLowerInvariant() };
}
}