Eric Kok
8 years ago
12 changed files with 89 additions and 36 deletions
@ -0,0 +1,3 @@ |
|||||||
|
package org.transdroid.connect.clients.rtorrent |
||||||
|
|
||||||
|
data class TrackerSpec(val url: String) |
@ -0,0 +1,5 @@ |
|||||||
|
package org.transdroid.connect.model |
||||||
|
|
||||||
|
data class TorrentDetails( |
||||||
|
val trackers: List<String>, |
||||||
|
var errors: List<String>) |
@ -1,5 +1,6 @@ |
|||||||
package org.transdroid.connect.util |
package org.transdroid.connect.util |
||||||
|
|
||||||
import io.reactivex.Flowable |
import io.reactivex.Flowable |
||||||
|
import io.reactivex.Single |
||||||
|
|
||||||
fun <T : Any> Flowable<Array<T>>.flatten(): Flowable<T> = this.flatMapIterable { items -> items.toList() } |
fun <T : Any> Single<Array<T>>.flatten(): Flowable<T> = this.flattenAsFlowable { items -> items.toList() } |
||||||
|
Loading…
Reference in new issue