app/src/main/java/ar/com/wolox/android/example/ui/login/LoginPresenter.java
/**
     * @param email String with the User Email
     * @param password String with the User Password
     */
@param email String with the User Email
@param password String with the User Password
@param email String with the User Email @param password String with the User Password
public void onLoginButtonClicked(String email, String password) {
        if (!email.isEmpty() && validFormat(email) && !password.isEmpty()) {
            mEmail = email;
            mPassword = password;
            getUsersFromServer(email, password);
        }
        if (email.isEmpty()) {
            getView().setEmptyEmailError();
        } else {
            if (!validFormat(email)) {
                getView().setInvalidEmailError();
            }
        }
        if (password.isEmpty()) {
            getView().setEmptyPassError();
        }
    }
public void onLoginButtonClicked ( String email , String password ) { if ( ! email . isEmpty ( ) && validFormat ( email ) && ! password . isEmpty ( ) ) { mEmail = email ; mPassword = password ; getUsersFromServer ( email , password ) ; } if ( email . isEmpty ( ) ) { getView ( ) . setEmptyEmailError ( ) ; } else { if ( ! validFormat ( email ) ) { getView ( ) . setInvalidEmailError ( ) ; } } if ( password . isEmpty ( ) ) { getView ( ) . setEmptyPassError ( ) ; } }
@param email String with the User Email
 @param password String with the User Password
@param email String with the User Email @param password String with the User Password