Created
November 5, 2019 22:11
-
-
Save francescogatto/589f9b59db61043a45975d0977198011 to your computer and use it in GitHub Desktop.
#kkd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed class DownloadResult { | |
object Success : DownloadResult() | |
data class Error(val message: String, val cause: Exception? = null) : DownloadResult() | |
data class Progress(val progress: Int): DownloadResult() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment