Created
April 12, 2018 03:34
-
-
Save patrickcousins/3f33f266f7dadcb8a4f327c51899df6b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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