diff options
author | Christian Segundo | 2023-07-24 10:45:15 +0200 |
---|---|---|
committer | Christian Segundo | 2023-07-24 10:45:15 +0200 |
commit | 01ce93653d86f2a47eda58d2e74c3926981b22cf (patch) | |
tree | def1c1599a0a044ab9c64d48b89c704f4cbb0938 /Xmission/Code/Home/Models/ListTorrentResponse.swift | |
parent | 864b644e8ecafccaf84b40168524e47351a6d111 (diff) | |
download | xmission-ios-master.tar.gz |
Diffstat (limited to 'Xmission/Code/Home/Models/ListTorrentResponse.swift')
-rw-r--r-- | Xmission/Code/Home/Models/ListTorrentResponse.swift | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Xmission/Code/Home/Models/ListTorrentResponse.swift b/Xmission/Code/Home/Models/ListTorrentResponse.swift new file mode 100644 index 0000000..42331cd --- /dev/null +++ b/Xmission/Code/Home/Models/ListTorrentResponse.swift @@ -0,0 +1,12 @@ +import Foundation + +typealias ListTorrentResponse = [Torrent] + +struct Torrent: Decodable { + var name: String + var completionPercent: Float + let ratio: Float + let rateDownload: Int64 + let rateUpload: Int64 + let labels: [String] +} |