class LoginPresenter extends MvpBasePresenter<LoginView> {

    public boolean validate(String username, String password, String url) {
        boolean isValid = true;
        if (!loginService.isUsernameValid(username)) {
            getView().showUserNameInvalid();
            isValid = false;
        }
        if (!loginService.isUsernameValid(password)) {
            getView().showPasswordInvalid();
            isValid = false;
        }

        if (!loginService.isUrlValid(url)) {
            getView().showUrlInvalid();
            isValid = false;
        }
        return isValid;
    }

    @Inject public  LoginPresenter(Lazy<LoginService> loginService, Lazy<SystemSettingsService> systemSettingsServiceLazy);

}