Table of Contents

Class ControlTorrentRequest

Namespace
TorBoxSDK.Models.Torrents
Assembly
TorBoxSDK.dll

Represents a request to perform a control operation on one or more torrents.

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

Properties

All

Gets a value indicating whether the operation should apply to all torrents, or null to apply to a single torrent identified by TorrentId.

[JsonPropertyName("all")]
public bool? All { get; init; }

Property Value

bool?

Operation

Gets the control operation to perform on the torrent.

[JsonPropertyName("operation")]
public ControlOperation Operation { get; init; }

Property Value

ControlOperation

TorrentId

Gets the identifier of the torrent to control, or null when All is true.

[JsonPropertyName("torrent_id")]
public long? TorrentId { get; init; }

Property Value

long?