-
Notifications
You must be signed in to change notification settings - Fork 14
/
AddTorrentRequestBase.cs
106 lines (90 loc) · 3.35 KB
/
AddTorrentRequestBase.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
using System;
using System.Collections.Generic;
namespace QBittorrent.Client
{
/// <summary>
/// The base class for add torrent requests.
/// </summary>
public abstract class AddTorrentRequestBase
{
/// <summary>
/// Download folder
/// </summary>
public string DownloadFolder { get; set; }
/// <summary>
/// Cookie sent to download the .torrent file
/// </summary>
public string Cookie { get; set; }
/// <summary>
/// Category for the torrent
/// </summary>
public string Category { get; set; }
/// <summary>
/// Skip hash checking.
/// </summary>
public bool SkipHashChecking { get; set; }
/// <summary>
/// Add torrents in the paused state.
/// </summary>
public bool Paused { get; set; }
/// <summary>
/// Create the root folder.
/// </summary>
/// <remarks>This value is ignored starting from API v2.7.0. Use <see cref="ContentLayout"/> for the API v2.7.0 and newer.</remarks>
/// <seealso cref="ContentLayout"/>
[ApiLevel(ApiLevel.V1)]
[Deprecated("2.7.0")]
public bool? CreateRootFolder { get; set; }
/// <summary>
/// Rename torrent
/// </summary>
public string Rename { get; set; }
/// <summary>
/// Set torrent upload speed limit
/// </summary>
public int? UploadLimit { get; set; }
/// <summary>
/// Set torrent download speed limit
/// </summary>
public int? DownloadLimit { get; set; }
/// <summary>
/// Enable sequential download
/// </summary>
public bool SequentialDownload { get; set; }
/// <summary>
/// Prioritize download of first and last pieces
/// </summary>
public bool FirstLastPiecePrioritized { get; set; }
/// <summary>
/// Enable/disable automatic torrent management for these torrents
/// </summary>
/// <remarks>This value is ignored until API v2.2.0</remarks>
[ApiLevel(ApiLevel.V2, MinVersion = "2.2.0")]
public bool? AutomaticTorrentManagement { get; set; }
/// <summary>
/// Tags for the torrent
/// </summary>
/// <remarks>This value is ignored until API v2.6.2</remarks>
[ApiLevel(ApiLevel.V2, MinVersion = "2.6.2")]
public IEnumerable<string> Tags { get; set; }
/// <summary>
/// Torrent content layout.
/// </summary>
/// <remarks>This value is ignored until API v2.7.0. Use <see cref="CreateRootFolder"/> for the previous versions.</remarks>
/// <seealso cref="CreateRootFolder"/>
[ApiLevel(ApiLevel.V2, MinVersion = "2.7.0")]
public TorrentContentLayout? ContentLayout { get; set; }
/// <summary>
/// Set torrent share ratio limit
/// </summary>
/// <remarks>This value is ignored until API v2.8.1</remarks>
[ApiLevel(ApiLevel.V2, MinVersion = "2.8.1")]
public double? RatioLimit { get; set; }
/// <summary>
/// Set torrent seeding time limit.
/// </summary>
/// <remarks>This value is ignored until API v2.8.1</remarks>
[ApiLevel(ApiLevel.V2, MinVersion = "2.8.1")]
public TimeSpan? SeedingTimeLimit { get; set; }
}
}