LibreTube/app/src/main/java/com/github/libretube/obj/DownloadStatus.kt

19 lines
409 B
Kotlin
Raw Normal View History

package com.github.libretube.obj
sealed class DownloadStatus {
object Completed : DownloadStatus()
object Paused : DownloadStatus()
2023-06-25 15:05:07 +05:30
object Stopped : DownloadStatus()
2022-12-25 18:36:23 +05:30
data class Progress(
val progress: Long,
val downloaded: Long,
val total: Long
2022-12-25 18:36:23 +05:30
) : DownloadStatus()
data class Error(val message: String, val cause: Throwable? = null) : DownloadStatus()
}