mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-16 15:20:31 +05:30
15 lines
359 B
Kotlin
15 lines
359 B
Kotlin
|
package com.github.libretube.obj
|
||
|
|
||
|
sealed class DownloadStatus {
|
||
|
|
||
|
object Unknown : DownloadStatus()
|
||
|
|
||
|
object Completed : DownloadStatus()
|
||
|
|
||
|
object Paused : DownloadStatus()
|
||
|
|
||
|
data class Progress(val downloaded: Long, val total: Long) : DownloadStatus()
|
||
|
|
||
|
data class Error(val message: String, val cause: Throwable? = null) : DownloadStatus()
|
||
|
}
|