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
- theMvpView
class
- All Implemented Interfaces:
MvpPresenter<V>
public class ChangePasswordPresenter<V extends ChangePasswordView> extends MvpNullObjectBasePresenter<V>
TheMvpNullObjectBasePresenter
class forChangePasswordActivity
-
-
Constructor Summary
Constructors Constructor Description ChangePasswordPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthenticationAPI
getAuthenticationAPI()
Get current instance ofAuthenticationAPI
protected ListenerModel<BaseModel<java.lang.Object>,java.lang.Object>
getChangePasswordListener()
The callback that will catch result from APIprotected void
onChangePasswordFailed(java.lang.String error)
Called after a failed password requestprotected void
onChangePasswordSuccess(java.lang.Object data)
Called after a successful password requestvoid
submitPassword(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:
AuthenticationAPI
used 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
-
-