Skip to content

Instantly share code, notes, and snippets.

@patrickcousins
Created April 12, 2018 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickcousins/3f33f266f7dadcb8a4f327c51899df6b to your computer and use it in GitHub Desktop.
Save patrickcousins/3f33f266f7dadcb8a4f327c51899df6b to your computer and use it in GitHub Desktop.
sealed class Result {
 class Success(val items: List<String>): Result()
 class Failure(val error: Throwable): Result()
 class Cancelled(): Result()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment