Class DownloadFile
Represents a file within a download item (torrent, usenet, or web download).
public sealed record DownloadFile : IEquatable<DownloadFile>
- Inheritance
-
DownloadFile
- Implements
- Inherited Members
Properties
AbsolutePath
Gets the absolute path of the file on the server, or null if not available.
[JsonPropertyName("absolute_path")]
public string? AbsolutePath { get; init; }
Property Value
Hash
Gets the torrent hash this file belongs to, or null if not available.
[JsonPropertyName("hash")]
public string? Hash { get; init; }
Property Value
Id
Gets the unique identifier of the file.
[JsonPropertyName("id")]
public long Id { get; init; }
Property Value
Infected
Gets a value indicating whether this file has been flagged as infected.
[JsonPropertyName("infected")]
public bool Infected { get; init; }
Property Value
Md5
Gets the MD5 hash of the file, or null if not available.
[JsonPropertyName("md5")]
public string? Md5 { get; init; }
Property Value
Mimetype
Gets the MIME type of the file, or null if not determined.
[JsonPropertyName("mimetype")]
public string? Mimetype { get; init; }
Property Value
Name
Gets the full name (path) of the file within the download.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
OpensubtitlesHash
Gets the OpenSubtitles hash for the file, or null if not available.
[JsonPropertyName("opensubtitles_hash")]
public string? OpensubtitlesHash { get; init; }
Property Value
S3Path
Gets the S3 storage path of the file, or null if not available.
[JsonPropertyName("s3_path")]
public string? S3Path { get; init; }
Property Value
ShortName
Gets the shortened display name of the file, or null if not available.
[JsonPropertyName("short_name")]
public string? ShortName { get; init; }
Property Value
Size
Gets the size of the file in bytes.
[JsonPropertyName("size")]
public long Size { get; init; }
Property Value
Zipped
Gets a value indicating whether this file is zipped.
[JsonPropertyName("zipped")]
public bool Zipped { get; init; }