Table of Contents

Class CreateWebDownloadRequest

Namespace
TorBoxSDK.Models.WebDownloads
Assembly
TorBoxSDK.dll

Represents a request to create a new web download.

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

Properties

AddOnlyIfCached

Gets a value indicating whether to only add the download if it is already cached, or null to use the default behavior.

[JsonPropertyName("add_only_if_cached")]
public bool? AddOnlyIfCached { get; init; }

Property Value

bool?

AsQueued

Gets a value indicating whether to add the download as a queued download, or null to start immediately.

[JsonPropertyName("as_queued")]
public bool? AsQueued { get; init; }

Property Value

bool?

Gets the URL of the file to download, or null if not provided.

[JsonPropertyName("link")]
public string? Link { get; init; }

Property Value

string

Name

Gets an optional override name for the download, or null to use the default name.

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

Property Value

string

Password

Gets the password for the download if the hoster requires one, or null if no password is needed.

[JsonPropertyName("password")]
public string? Password { get; init; }

Property Value

string