wabbajack/Wabbajack.DTOs/CDN/FileDefinition.cs
2021-10-23 10:51:17 -06:00

15 lines
477 B
C#

using Wabbajack.Hashing.xxHash64;
using Wabbajack.Paths;
namespace Wabbajack.DTOs.CDN;
public class FileDefinition
{
public string? Author { get; set; }
public RelativePath OriginalFileName { get; set; }
public long Size { get; set; }
public Hash Hash { get; set; }
public PartDefinition[] Parts { get; set; } = { };
public string? ServerAssignedUniqueId { get; set; }
public string MungedName => $"{OriginalFileName}_{ServerAssignedUniqueId!}";
}