Last active
June 14, 2018 12:42
-
-
Save marcinOz/be275a36c605955de909179aaecfd2c5 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 ResourceState<T> | |
class LoadingState<T> : ResourceState<T>() | |
class EmptyState<T> : ResourceState<T>() | |
data class PopulatedState<T>(val data: T) : ResourceState<T>() | |
data class ErrorState<T>(val message: String?) : ResourceState<T>() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment