Skip to content

Instantly share code, notes, and snippets.

@francescogatto
Created November 5, 2019 22:11
Show Gist options
  • Save francescogatto/589f9b59db61043a45975d0977198011 to your computer and use it in GitHub Desktop.
Save francescogatto/589f9b59db61043a45975d0977198011 to your computer and use it in GitHub Desktop.
#kkd
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