Last active
February 28, 2021 12:02
-
-
Save raulh82vlc/d97b58f6b01a8e383db1911aa59f9b0d 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
/** | |
* Output UI States defined for StateFlow & Compose in the workflow | |
*/ | |
sealed class TweetsUIState { | |
data class ListResultsUIState(val tweets: List<Tweet>): TweetsUIState() | |
data class ErrorUIState(val msg: String): TweetsUIState() | |
data class EmptyUIState(val query: String): TweetsUIState() | |
object InitialIdleUIState: TweetsUIState() | |
object LoadingUIState: TweetsUIState() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment