1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2025-07-04 10:38:52 +02:00
Discord-History-Tracker/app/Server/Data/FileUrl.cs
2025-04-25 13:07:35 +02:00

10 lines
331 B
C#

namespace DHT.Server.Data;
public readonly record struct FileUrl(string NormalizedUrl, string DownloadUrl, string? Type) {
public FileUrl(string url, string? type) : this(url, url, type) {}
public Download ToPendingDownload() {
return new Download(NormalizedUrl, DownloadUrl, DownloadStatus.Pending, Type, size: null);
}
}