Table of Contents

Class DownloadFile

Namespace
TorBoxSDK.Models.Common
Assembly
TorBoxSDK.dll

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

string

Hash

Gets the torrent hash this file belongs to, or null if not available.

[JsonPropertyName("hash")]
public string? Hash { get; init; }

Property Value

string

Id

Gets the unique identifier of the file.

[JsonPropertyName("id")]
public long Id { get; init; }

Property Value

long

Infected

Gets a value indicating whether this file has been flagged as infected.

[JsonPropertyName("infected")]
public bool Infected { get; init; }

Property Value

bool

Md5

Gets the MD5 hash of the file, or null if not available.

[JsonPropertyName("md5")]
public string? Md5 { get; init; }

Property Value

string

Mimetype

Gets the MIME type of the file, or null if not determined.

[JsonPropertyName("mimetype")]
public string? Mimetype { get; init; }

Property Value

string

Name

Gets the full name (path) of the file within the download.

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

OpensubtitlesHash

Gets the OpenSubtitles hash for the file, or null if not available.

[JsonPropertyName("opensubtitles_hash")]
public string? OpensubtitlesHash { get; init; }

Property Value

string

S3Path

Gets the S3 storage path of the file, or null if not available.

[JsonPropertyName("s3_path")]
public string? S3Path { get; init; }

Property Value

string

ShortName

Gets the shortened display name of the file, or null if not available.

[JsonPropertyName("short_name")]
public string? ShortName { get; init; }

Property Value

string

Size

Gets the size of the file in bytes.

[JsonPropertyName("size")]
public long Size { get; init; }

Property Value

long

Zipped

Gets a value indicating whether this file is zipped.

[JsonPropertyName("zipped")]
public bool Zipped { get; init; }

Property Value

bool