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 byOverImageFragment
andSeparateCaptionFragment
-
-
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 void
init()
Initialize theCaptionPhotoView
void
submitChallenge(ChallengeParts challengeParts)
Submit with challenge partsvoid
submitChallenge(com.cheetahdigital.uikit.helper.video.MediaFile photo)
Submit photovoid
submitChallenge(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
- theCaptionPhotoResponseSetting
params
- 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
-
-