Created
October 9, 2019 00:24
-
-
Save demonar/778142c57873a478bd9c408de6d0f2a7 to your computer and use it in GitHub Desktop.
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 Result<T> { | |
data class Success<T>(val call: Call<T>, val response: Response<T>): Result<T>() | |
data class Failure<T>(val call: Call<T>, val error: Throwable): Result<T>() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment