Table of Contents

Class Hoster

Namespace
TorBoxSDK.Models.WebDownloads
Assembly
TorBoxSDK.dll

Represents a supported file hoster and its current bandwidth status.

public sealed record Hoster : IEquatable<Hoster>
Inheritance
Hoster
Implements
Inherited Members

Properties

DailyBandwidthLimit

Gets the daily bandwidth limit in bytes for this hoster, or null if no limit is set.

[JsonPropertyName("daily_bandwidth_limit")]
public long? DailyBandwidthLimit { get; init; }

Property Value

long?

DailyBandwidthUsed

Gets the amount of daily bandwidth already used in bytes for this hoster, or null if not tracked.

[JsonPropertyName("daily_bandwidth_used")]
public long? DailyBandwidthUsed { get; init; }

Property Value

long?

DailyLinkLimit

Gets the daily link limit for this hoster.

[JsonPropertyName("daily_link_limit")]
public int DailyLinkLimit { get; init; }

Property Value

int

DailyLinkUsed

Gets the number of daily links already used for this hoster.

[JsonPropertyName("daily_link_used")]
public int DailyLinkUsed { get; init; }

Property Value

int

Domains

Gets the list of domains associated with this hoster.

[JsonPropertyName("domains")]
public IReadOnlyList<string> Domains { get; init; }

Property Value

IReadOnlyList<string>

Icon

Gets the URL of the hoster's icon image, or null if not available.

[JsonPropertyName("icon")]
public string? Icon { get; init; }

Property Value

string

Id

Gets the unique identifier of the hoster.

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

Property Value

int

Name

Gets the name of the file hoster.

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

Property Value

string

Note

Gets any note about the hoster, or null if none.

[JsonPropertyName("note")]
public string? Note { get; init; }

Property Value

string

Nsfw

Gets a value indicating whether the hoster hosts NSFW content.

[JsonPropertyName("nsfw")]
public bool Nsfw { get; init; }

Property Value

bool

PerLinkSizeLimit

Gets the per-link size limit in bytes for this hoster, or null if no limit is set.

[JsonPropertyName("per_link_size_limit")]
public long? PerLinkSizeLimit { get; init; }

Property Value

long?

Regex

Gets the regex pattern used to match URLs for this hoster, or null if not available.

[JsonPropertyName("regex")]
public string? Regex { get; init; }

Property Value

string

Status

Gets a value indicating whether the hoster is currently operational.

[JsonPropertyName("status")]
public bool Status { get; init; }

Property Value

bool

Type

Gets the type of hoster (e.g., "hoster"), or null if not available.

[JsonPropertyName("type")]
public string? Type { get; init; }

Property Value

string

Url

Gets the URL of the hoster's website, or null if not available.

[JsonPropertyName("url")]
public string? Url { get; init; }

Property Value

string