Last active
September 3, 2019 09:17
-
-
Save LukaKordic/a6b90e3fbc12950c158df4b738d2c7d3 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 ViewState<out T : Any> | |
class Success<out T : Any>(val data: T) : ViewState<T>() | |
class Error<out T : Any>(val error: Throwable) : ViewState<T>() | |
class Loading<out T : Any> : ViewState<T>() | |
class NoInternetState<T : Any> : ViewState<T>() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment