Last active
August 7, 2022 13:09
-
-
Save motorro/ed2dcd878204baa1dd2697746e3b899d to your computer and use it in GitHub Desktop.
Inter-state data passing
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
class CredentialsCheckState(data: LoginDataState): CoroutineState<LoginGesture, LoginUiState>() { | |
/** | |
* Should have valid email at this point passed with inter-state data | |
*/ | |
private val email = requireNotNull(data.commonData.email) { | |
"Email is not provided" | |
} | |
/** | |
* Should have valid password at this point passed with inter-state data | |
*/ | |
private val password = requireNotNull(data.password) { | |
"Password is not provided" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment