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