mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-16 07:10:29 +05:30
19 lines
409 B
Kotlin
19 lines
409 B
Kotlin
package com.github.libretube.obj
|
|
|
|
sealed class DownloadStatus {
|
|
|
|
object Completed : DownloadStatus()
|
|
|
|
object Paused : DownloadStatus()
|
|
|
|
object Stopped : 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()
|
|
}
|