Class CaptionPhotoPresenter<V extends CaptionPhotoView>
- java.lang.Object
-
- com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter<V>
-
- com.cheetahdigital.uikit.architecture.mvp.Presenter<T>
-
- com.cheetahdigital.challenges.ui.responses.base.ChallengeResponsePresenter<V>
-
- com.cheetahdigital.challenges.ui.responses.captionphoto.CaptionPhotoPresenter<V>
-
- All Implemented Interfaces:
com.cheetahdigital.uikit.architecture.mvp.MvpPresenter<V>
public class CaptionPhotoPresenter<V extends CaptionPhotoView> extends ChallengeResponsePresenter<V>
Presenter that is used byOverImageFragmentandSeparateCaptionFragment
-
-
Constructor Summary
Constructors Constructor Description CaptionPhotoPresenter(java.lang.String id, java.lang.String responseId, CaptionPhotoResponseSetting responseSetting, ChallengeParams params)Create the presenter with a givenChallengeParams
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()Initialize theCaptionPhotoViewvoidsubmitChallenge(ChallengeParts challengeParts)Submit with challenge partsvoidsubmitChallenge(com.cheetahdigital.uikit.helper.video.MediaFile photo)Submit photovoidsubmitChallenge(java.lang.String caption, com.cheetahdigital.uikit.helper.video.MediaFile photo)Submit the photo with caption-
Methods inherited from class com.cheetahdigital.challenges.ui.responses.base.ChallengeResponsePresenter
getChallengesAPI, getRespondListener, onRespondFailed, onRespondSuccess, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse
-
-
-
-
Constructor Detail
-
CaptionPhotoPresenter
public CaptionPhotoPresenter(java.lang.String id, java.lang.String responseId, CaptionPhotoResponseSetting responseSetting, ChallengeParams params)Create the presenter with a givenChallengeParams- Parameters:
id- challenge idresponseId- response idresponseSetting- theCaptionPhotoResponseSettingparams- theChallengeParams
-
-
Method Detail
-
init
public void init()
Initialize theCaptionPhotoView
-
submitChallenge
public void submitChallenge(com.cheetahdigital.uikit.helper.video.MediaFile photo)
Submit photo- Parameters:
photo- image file
-
submitChallenge
public void submitChallenge(java.lang.String caption, com.cheetahdigital.uikit.helper.video.MediaFile photo)Submit the photo with caption- Parameters:
caption- textphoto- image file
-
submitChallenge
public void submitChallenge(ChallengeParts challengeParts)
Submit with challenge parts- Parameters:
challengeParts- theChallengeParts
-
-