Skip to content

Instantly share code, notes, and snippets.

@motorro
Created August 14, 2022 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save motorro/83321edab2d878f8753a96067606d9cd to your computer and use it in GitHub Desktop.
Save motorro/83321edab2d878f8753a96067606d9cd to your computer and use it in GitHub Desktop.
UI-state adapter
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