Last active
July 16, 2018 09:07
-
-
Save yogacp/d3d55606c31d0f0c52136f36d1eb6f42 to your computer and use it in GitHub Desktop.
User Login example 1
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
class LoginContract { | |
interface View { | |
fun goToOtpPage(userId: String) | |
fun showError(message: String) | |
fun onLoginButtonClicked() | |
} | |
interface Presenter { | |
fun onLoginBtnPressed(username: String, password: String) | |
fun onLoginSuccess(userid: String) | |
fun onLoginError(message: String) | |
} | |
interface Interactor { | |
fun login(username: String, password: String) | |
} | |
interface InteractorOutput { | |
fun onLoginSuccess(userId: String) | |
fun onLoginError(message: String) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment