Eric Kok
8 years ago
10 changed files with 127 additions and 25 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
package org.transdroid.connect.clients.rtorrent |
||||
|
||||
data class FileSpec( |
||||
val pathName: String, |
||||
var size: Long, |
||||
var chunksDone: Long, |
||||
var chunksTotal: Long, |
||||
var priority: Long, |
||||
var pathFull: String) |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
package org.transdroid.connect.model |
||||
|
||||
enum class Priority { |
||||
OFF, |
||||
LOW, |
||||
NORMAL, |
||||
HIGH |
||||
} |
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
package org.transdroid.connect.model |
||||
|
||||
data class TorrentFile( |
||||
val key: String, |
||||
val name: String, |
||||
val relativePath: String, |
||||
val fullPath: String, |
||||
val totalSize: Long, |
||||
val downloaded: Long, |
||||
val priority: Priority) { |
||||
|
||||
fun mimicPriority(newPriority: Priority): TorrentFile = this.copy(priority = newPriority) |
||||
|
||||
} |
Loading…
Reference in new issue