Class ChangePasswordPresenter<V extends ChangePasswordView>
- java.lang.Object
-
- com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter<V>
-
- com.cheetahdigital.authentication.ui.changepassword.ChangePasswordPresenter<V>
-
- Type Parameters:
V- theMvpViewclass
- All Implemented Interfaces:
MvpPresenter<V>
public class ChangePasswordPresenter<V extends ChangePasswordView> extends MvpNullObjectBasePresenter<V>
TheMvpNullObjectBasePresenterclass forChangePasswordActivity
-
-
Constructor Summary
Constructors Constructor Description ChangePasswordPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthenticationAPIgetAuthenticationAPI()Get current instance ofAuthenticationAPIprotected ListenerModel<BaseModel<java.lang.Object>,java.lang.Object>getChangePasswordListener()The callback that will catch result from APIprotected voidonChangePasswordFailed(java.lang.String error)Called after a failed password requestprotected voidonChangePasswordSuccess(java.lang.Object data)Called after a successful password requestvoidsubmitPassword(AuthenticationQueryParams queryParams, AuthenticationFieldParams fieldParams)Call this to change password-
Methods inherited from class com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter
attachView, detachView, getView
-
-
-
-
Method Detail
-
getChangePasswordListener
protected ListenerModel<BaseModel<java.lang.Object>,java.lang.Object> getChangePasswordListener()
The callback that will catch result from API- Returns:
- response formatted in
BaseModel
-
getAuthenticationAPI
protected AuthenticationAPI getAuthenticationAPI()
Get current instance ofAuthenticationAPI- Returns:
AuthenticationAPIused on this presenter
-
onChangePasswordFailed
protected void onChangePasswordFailed(java.lang.String error)
Called after a failed password request- Parameters:
error- contains the detail of the error
-
onChangePasswordSuccess
protected void onChangePasswordSuccess(java.lang.Object data)
Called after a successful password request- Parameters:
data- response received from a success request
-
submitPassword
public void submitPassword(AuthenticationQueryParams queryParams, AuthenticationFieldParams fieldParams)
Call this to change password- Parameters:
queryParams- contains all the query parameters to usefieldParams- contains all the field params to use
-
-