Created
August 14, 2022 11:31
-
-
Save motorro/83321edab2d878f8753a96067606d9cd to your computer and use it in GitHub Desktop.
UI-state adapter
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 WelcomeUiState { | |
/** | |
* Login state wrapper | |
* @property value Login UI state | |
*/ | |
data class Login(val value: LoginUiState) : WelcomeUiState() | |
/** | |
* Register state wrapper | |
* @property value Register UI state | |
*/ | |
data class Register(val value: RegisterUiState) : WelcomeUiState() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment