Created
August 7, 2022 13:22
-
-
Save motorro/b0be0b17e3fdeca79e7331506b4e6960 to your computer and use it in GitHub Desktop.
Login state factory interface
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
interface LoginStateFactory { | |
/** | |
* Creates a state to handle existing user's password entry | |
* @param data Login data state | |
*/ | |
fun passwordEntry(data: LoginDataState): LoginState | |
/** | |
* Creates a state to check email/password | |
* @param data Data state | |
*/ | |
fun checking(data: LoginDataState): LoginState | |
/** | |
* Creates a state for password error screen | |
*/ | |
fun error(data: LoginDataState, error: Throwable): LoginState | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment