Class ResetPasswordPresenter<V extends ResetPasswordView>
- java.lang.Object
-
- com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter<V>
-
- com.cheetahdigital.uikit.architecture.mvp.Presenter<V>
-
- com.cheetahdigital.authentication.ui.resetpassword.ResetPasswordPresenter<V>
-
- Type Parameters:
V- theMvpViewclass
- All Implemented Interfaces:
MvpPresenter<V>
public class ResetPasswordPresenter<V extends ResetPasswordView> extends Presenter<V>
TheMvpNullObjectBasePresenterclass forResetPasswordActivity
-
-
Constructor Summary
Constructors Constructor Description ResetPasswordPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthenticationAPIgetAuthenticationAPI()Get current instance ofAuthenticationAPIprotected Listener<SuccessResponse>getResetPasswordListener()protected voidonResetPasswordFailure(java.lang.String error)Called when reset password failsprotected voidonResetPasswordSuccess(SuccessResponse data)Called when reset password is successfulvoidresetPassword(AuthenticationFieldParams fieldParams)Reset password via secure token.-
Methods inherited from class com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter
attachView, detachView, getView
-
-
-
-
Method Detail
-
getAuthenticationAPI
protected AuthenticationAPI getAuthenticationAPI()
Get current instance ofAuthenticationAPI- Returns:
AuthenticationAPIused on this presenter
-
getResetPasswordListener
protected Listener<SuccessResponse> getResetPasswordListener()
-
onResetPasswordSuccess
protected void onResetPasswordSuccess(SuccessResponse data)
Called when reset password is successful- Parameters:
data-Messagefrom successful response
-
onResetPasswordFailure
protected void onResetPasswordFailure(java.lang.String error)
Called when reset password fails- Parameters:
error- error message
-
resetPassword
public void resetPassword(@NonNull AuthenticationFieldParams fieldParams)Reset password via secure token. Remember to set the following:- Parameters:
fieldParams-AuthenticationFieldParams
-
-