2021-12-20 16:22:40 +00:00
|
|
|
using System;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
using System.Web;
|
2021-09-27 12:42:46 +00:00
|
|
|
using Wabbajack.Hashing.xxHash64;
|
|
|
|
using Wabbajack.Paths;
|
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
namespace Wabbajack.DTOs.CDN;
|
|
|
|
|
|
|
|
public class FileDefinition
|
2021-09-27 12:42:46 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
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!}";
|
2021-12-20 16:22:40 +00:00
|
|
|
|
2021-09-27 12:42:46 +00:00
|
|
|
}
|