Class RequestWebDownloadOptions
- Namespace
- TorBoxSDK.Models.WebDownloads
- Assembly
- TorBoxSDK.dll
Represents the query parameters for requesting a download link for a web download.
public sealed record RequestWebDownloadOptions : IEquatable<RequestWebDownloadOptions>
- Inheritance
-
RequestWebDownloadOptions
- Implements
- Inherited Members
Remarks
These options are sent as query string parameters, not as a JSON body.
Properties
AppendName
Gets a value indicating whether to append the file name to the download URL, or null to use the default behavior.
[QueryParameterName("append_name")]
public bool? AppendName { get; init; }
Property Value
- bool?
FileId
Gets the identifier of a specific file within the download, or null to download all files.
[QueryParameterName("file_id")]
public long? FileId { get; init; }
Property Value
- long?
Redirect
Gets a value indicating whether to redirect to the download URL, or null to return the URL in the response body.
[QueryParameterName("redirect")]
public bool? Redirect { get; init; }
Property Value
- bool?
Token
Gets the API token to use for authentication, or null to use the client's default token.
[QueryParameterName("token")]
public string? Token { get; init; }
Property Value
UserIp
Gets the IP address of the user requesting the download, or null to omit.
[QueryParameterName("user_ip")]
public string? UserIp { get; init; }
Property Value
ZipLink
Gets a value indicating whether to return a zip download link, or null to use the default behavior.
[QueryParameterName("zip_link")]
public bool? ZipLink { get; init; }
Property Value
- bool?