Skip to content

Instantly share code, notes, and snippets.

@armancodv
Created June 2, 2020 19:20
Show Gist options
  • Save armancodv/3d6f23a52eb8d5578a6f718e99ff720c to your computer and use it in GitHub Desktop.
Save armancodv/3d6f23a52eb8d5578a6f718e99ff720c to your computer and use it in GitHub Desktop.
MVP
interface LoginContract {
interface View : BaseContract.View {
fun showEmailError(error: String?)
fun showPasswordError(error: String?)
fun disableButton()
fun enableButton()
}
interface Presenter : BaseContract.Presenter<View> {
fun login(email: String?, password: String?)
fun checkEmail(email: String)
fun checkPassword(password: String)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment