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:
com.cheetahdigital.uikit.architecture.mvp.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 defaultChallengeParamsViewContentPresenter(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 voidcontentLoaded()Called by the view once content has been loaded successfullyvoidexitViewContent()Called by the view to complete the view content challengevoidfinishViewContent()Called by the view to complete the view content challengevoidinit()Initialize theViewContentViewvoidsubmit(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
-
-
-
-
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- theChallengeParamsresponseSetting- 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
-
-