summaryrefslogtreecommitdiff
path: root/Xmission/Code/Home/Models/ListTorrentResponse.swift
diff options
context:
space:
mode:
authorChristian Segundo2023-07-24 10:45:15 +0200
committerChristian Segundo2023-07-24 10:45:15 +0200
commit01ce93653d86f2a47eda58d2e74c3926981b22cf (patch)
treedef1c1599a0a044ab9c64d48b89c704f4cbb0938 /Xmission/Code/Home/Models/ListTorrentResponse.swift
parent864b644e8ecafccaf84b40168524e47351a6d111 (diff)
downloadxmission-ios-01ce93653d86f2a47eda58d2e74c3926981b22cf.tar.gz
Diffstat (limited to 'Xmission/Code/Home/Models/ListTorrentResponse.swift')
-rw-r--r--Xmission/Code/Home/Models/ListTorrentResponse.swift12
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]
+}