2018-02-10 17:34:01 +01:00
|
|
|
package de.vanitasvitae.slam.mvp.contracts;
|
2018-02-01 08:24:08 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Model-View-Presenter contract of the login screen.
|
|
|
|
* Created by Paul Schaub on 01.02.18.
|
|
|
|
*/
|
|
|
|
public interface LoginContract {
|
|
|
|
|
|
|
|
interface View {
|
|
|
|
void showInvalidJidError();
|
|
|
|
void hideInvalidJidError();
|
|
|
|
void showInvalidPasswordError();
|
|
|
|
void showIncorrectPasswordError();
|
|
|
|
void hidePasswordError();
|
|
|
|
void showServerNotFoundError();
|
|
|
|
void showProgressIndicator();
|
|
|
|
void hideProgressIndicator();
|
|
|
|
void navigateToMainActivity();
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Presenter {
|
|
|
|
void jidChanged(String jid);
|
|
|
|
void passwordChanged(String password);
|
|
|
|
void loginClicked();
|
|
|
|
}
|
|
|
|
}
|