Last active
February 16, 2021 14:42
-
-
Save DarkAbhi/e0d3bea89c6ba71a64bfd4fe801138e3 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 State<out T> { | |
class Loading<out T> : State<T>() | |
data class Success<out T>(val data: T) : State<T>() | |
data class Failed<out T>(val message: String) : State<T>() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment