Class ViewContentPresenter<T extends ViewContentView>
- java.lang.Object
-
- com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter<V>
-
- com.cheetahdigital.uikit.architecture.mvp.Presenter<T>
-
- com.cheetahdigital.challenges.ui.responses.base.ChallengeResponsePresenter<T>
-
- com.cheetahdigital.challenges.ui.responses.viewcontent.base.ViewContentPresenter<T>
-
- All Implemented Interfaces:
MvpPresenter<T>
public class ViewContentPresenter<T extends ViewContentView> extends ChallengeResponsePresenter<T>
Presenter that is used byGameBaseFragment
-
-
Constructor Summary
Constructors Constructor Description ViewContentPresenter(java.lang.String id, java.lang.String responseId, ChallengeParams params, ViewContentResponseSetting responseSetting)
Create the presenter with defaultChallengeParams
ViewContentPresenter(java.lang.String id, java.lang.String responseId, ViewContentResponseSetting responseSetting)
Create the presenter with defaultChallengeParams
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contentLoaded()
Called by the view once content has been loaded successfullyvoid
exitViewContent()
Called by the view to complete the view content challengevoid
finishViewContent()
Called by the view to complete the view content challengevoid
init()
Initialize theViewContentView
void
submit(ChallengeFields fields)
Submit challenge response-
Methods inherited from class com.cheetahdigital.challenges.ui.responses.base.ChallengeResponsePresenter
getChallengesAPI, getRespondListener, onRespondFailed, onRespondSuccess, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse
-
Methods inherited from class com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter
attachView, detachView, getView
-
-
-
-
Constructor Detail
-
ViewContentPresenter
public ViewContentPresenter(java.lang.String id, java.lang.String responseId, ViewContentResponseSetting responseSetting)
Create the presenter with defaultChallengeParams
- Parameters:
id
- challenge idresponseId
- response idresponseSetting
- theViewContentResponseSetting
-
ViewContentPresenter
public ViewContentPresenter(java.lang.String id, java.lang.String responseId, ChallengeParams params, ViewContentResponseSetting responseSetting)
Create the presenter with defaultChallengeParams
- Parameters:
id
- challenge idresponseId
- response idparams
- theChallengeParams
responseSetting
- theViewContentResponseSetting
-
-
Method Detail
-
init
public void init()
Initialize theViewContentView
-
contentLoaded
public void contentLoaded()
Called by the view once content has been loaded successfully
-
exitViewContent
public void exitViewContent()
Called by the view to complete the view content challenge
-
finishViewContent
public void finishViewContent()
Called by the view to complete the view content challenge
-
submit
public void submit(ChallengeFields fields)
Submit challenge response- Parameters:
fields
- challenge fields
-
-