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
- theMvpView
class
- All Implemented Interfaces:
MvpPresenter<V>
public class ResetPasswordPresenter<V extends ResetPasswordView> extends Presenter<V>
TheMvpNullObjectBasePresenter
class forResetPasswordActivity
-
-
Constructor Summary
Constructors Constructor Description ResetPasswordPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthenticationAPI
getAuthenticationAPI()
Get current instance ofAuthenticationAPI
protected Listener<SuccessResponse>
getResetPasswordListener()
protected void
onResetPasswordFailure(java.lang.String error)
Called when reset password failsprotected void
onResetPasswordSuccess(SuccessResponse data)
Called when reset password is successfulvoid
resetPassword(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:
AuthenticationAPI
used on this presenter
-
getResetPasswordListener
protected Listener<SuccessResponse> getResetPasswordListener()
-
onResetPasswordSuccess
protected void onResetPasswordSuccess(SuccessResponse data)
Called when reset password is successful- Parameters:
data
-Message
from 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
-
-