From 01ce93653d86f2a47eda58d2e74c3926981b22cf Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Mon, 24 Jul 2023 10:45:15 +0200 Subject: wip --- Xmission/Code/Home/Models/ListTorrentResponse.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Xmission/Code/Home/Models/ListTorrentResponse.swift (limited to 'Xmission/Code/Home/Models/ListTorrentResponse.swift') 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] +} -- cgit v1.2.3