mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-07-04 01:38:52 +02:00
10 lines
331 B
C#
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);
|
|
}
|
|
}
|