Class PhotoPresenter<T extends PhotoView>
- 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.photo.PhotoPresenter<T>
-
- All Implemented Interfaces:
com.cheetahdigital.uikit.architecture.mvp.MvpPresenter<T>
public class PhotoPresenter<T extends PhotoView> extends ChallengeResponsePresenter<T>
Presenter that is used byPhotoFragment
-
-
Constructor Summary
Constructors Constructor Description PhotoPresenter(java.lang.String id, java.lang.String responseId, ChallengeParams params)
Create the presenter with a givenChallengeParams
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
submitChallenge(ChallengeParts parts)
Submit with challenge partsvoid
submitChallenge(java.lang.String caption, com.cheetahdigital.uikit.helper.video.MediaFile photo)
Submit photo-
Methods inherited from class com.cheetahdigital.challenges.ui.responses.base.ChallengeResponsePresenter
getChallengesAPI, getRespondListener, onRespondFailed, onRespondSuccess, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse, submitChallengeResponse
-
-
-
-
Constructor Detail
-
PhotoPresenter
public PhotoPresenter(java.lang.String id, java.lang.String responseId, ChallengeParams params)
Create the presenter with a givenChallengeParams
- Parameters:
id
- challenge idresponseId
- response idparams
- theChallengeParams
-
-
Method Detail
-
submitChallenge
public void submitChallenge(java.lang.String caption, com.cheetahdigital.uikit.helper.video.MediaFile photo)
Submit photo- Parameters:
caption
- text captionphoto
- image file
-
submitChallenge
public void submitChallenge(ChallengeParts parts)
Submit with challenge parts- Parameters:
parts
- theChallengeParts
-
-