Interface ChallengeResponseView
-
- All Superinterfaces:
MvpView
- All Known Subinterfaces:
CaptionPhotoView
,CheckInView
,GameView
,HtmlGameView
,MultiQuestionView
,PhotoView
,ScratcherView
,UpdateAttributeView
,UpdatePreferencesView
,VideoView
,ViewContentView
- All Known Implementing Classes:
ChallengeResponseFragment
,CheckInFragment
,GameBaseFragment
,HtmlGameFragment
,MultiQuestionFragment
,OverImageFragment
,PhotoFragment
,ScratcherFragment
,SeparateCaptionFragment
,UpdateAttributeFragment
,UpdateAvatarFragment
,UpdatePreferencesFragment
,VideoFragment
,ViewContentBaseFragment
,ViewPhotoFragment
,ViewUrlFragment
,ViewYoutubeFragment
public interface ChallengeResponseView extends MvpView
Base view class for challenge response. This view must be implemented to notify the Activity or Fragment of the API call returns.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onChallengeRespondSuccess(Response data)
Notifies the view when the challenge respond is successfulvoid
showErrorMessage(java.lang.String error)
Notifies the view when the challenge respond failedvoid
showLoading(boolean show)
Notifies the view to show or hide loadingvoid
showReward(java.lang.String primary, com.google.gson.JsonObject secondary, java.lang.String status)
Notifies the view to show the reward for responding to the challenge
-
-
-
Method Detail
-
onChallengeRespondSuccess
void onChallengeRespondSuccess(Response data)
Notifies the view when the challenge respond is successful- Parameters:
data
-Response
model
-
showReward
void showReward(java.lang.String primary, com.google.gson.JsonObject secondary, java.lang.String status)
Notifies the view to show the reward for responding to the challenge- Parameters:
primary
- reward string of main prizesecondary
- reward string of additional prizestatus
- status fChallengeResponse
-
showErrorMessage
void showErrorMessage(java.lang.String error)
Notifies the view when the challenge respond failed- Parameters:
error
- message
-
showLoading
void showLoading(boolean show)
Notifies the view to show or hide loading- Parameters:
show
- true to start loading, false to hide
-
-