Files
LightlessAPI/LightlessSyncAPI/Dto/Files/DownloadFileDto.cs

18 lines
714 B
C#

using MessagePack;
namespace LightlessSync.API.Dto.Files;
[MessagePackObject(keyAsPropertyName: true)]
public record DownloadFileDto : ITransferFileDto
{
public bool FileExists { get; set; } = true;
public string Hash { get; set; } = string.Empty;
public string Url { get; set; } = string.Empty;
public string CDNDownloadUrl { get; set; } = string.Empty;
public List<string> HasFileDirectUrls { get; set; } = new();
public List<string> PullThroughDirectUrls { get; set; } = new();
public long Size { get; set; } = 0;
public bool IsForbidden { get; set; } = false;
public string ForbiddenBy { get; set; } = string.Empty;
public long RawSize { get; set; } = 0;
}