Package com.cheetahdigital.messages.ui
Interface MessagesView
-
- All Superinterfaces:
EndlessListView,LceView,ListView,MvpLceView,MvpView,RefreshableView
- All Known Implementing Classes:
MessagesFragment
public interface MessagesView extends EndlessListView
Extends theEndlessListViewThis notifies the activity or fragment of the results of the API once the view is called by the Presenter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendMessagesList(java.util.List<Message> messages, int totalEntries)This notifies the view when the API for getting the messages returns a successful response.voidremoveItemOnAdapter(int messageId)This notifies the view when the API for dismissing a message succeedsvoidsetLoading(boolean state)Set loading state of the viewvoidshowDialogMissingOffer()This notifies the view on error related to missing offervoidshowEmptyAttachmentError()This notifies the view to show an error message for trying to launch an attachmentvoidshowErrorDismissDialog()This notifies the view when the API for dismissing a message failsvoidshowMessagesList(java.util.List<Message> messages, int totalEntries)This notifies the view when the API for getting the messages returns a successful responsevoidstartAwardDetails(Award award)This notifies the view to start anRewardDetailsActivityvoidstartChallengeDetails(int id)This notifies the view to start the Challenge Details ActivityvoidstartEventsDetails(int id)This notifies the view to start the Event Details ActivityvoidstartMemberDetails(int id)This notifies the view to start the Member Details ActivityvoidstartNewsfeedDetails(int id)This notifies the view to start the Newsfeed Details ActivityvoidstartOfferDetails(int id)This notifies the view to start the Offer Details ActivityvoidstartOfferResponseDetails(int id)This notifies the view to start the Offer Response Details ActivityvoidstartOfferUrl(java.lang.String url)This notifies the view to start the Offer URL Details ActivityvoidstartRewardsDetails(int id)This notifies the view to start the Reward Details Activity-
Methods inherited from interface com.cheetahdigital.uikit.widget.list.EndlessListView
onFinishLoadMore, onLoadMoreFailed
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.LceView
onLoadFailed, onLoadSuccess, setErrorViewClickListener
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.MvpLceView
showContent, showError, showLoading
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.refreshable.RefreshableView
onFinishRefresh, onRefreshFailed
-
-
-
-
Method Detail
-
showMessagesList
void showMessagesList(java.util.List<Message> messages, int totalEntries)
This notifies the view when the API for getting the messages returns a successful response- Parameters:
messages- list ofMessagetotalEntries- total number of entries
-
appendMessagesList
void appendMessagesList(java.util.List<Message> messages, int totalEntries)
This notifies the view when the API for getting the messages returns a successful response. This contains a list of message for a certain page- Parameters:
messages- list ofMessagetotalEntries- total number of entries
-
removeItemOnAdapter
void removeItemOnAdapter(int messageId)
This notifies the view when the API for dismissing a message succeeds- Parameters:
messageId- id of theMessage
-
showErrorDismissDialog
void showErrorDismissDialog()
This notifies the view when the API for dismissing a message fails
-
setLoading
void setLoading(boolean state)
Set loading state of the view- Parameters:
state- loading state. True to show loading, else false
-
showDialogMissingOffer
void showDialogMissingOffer()
This notifies the view on error related to missing offer
-
startOfferDetails
void startOfferDetails(int id)
This notifies the view to start the Offer Details Activity- Parameters:
id- id of the Offer
-
startOfferResponseDetails
void startOfferResponseDetails(int id)
This notifies the view to start the Offer Response Details Activity- Parameters:
id- id of the Offer Response
-
startRewardsDetails
void startRewardsDetails(int id)
This notifies the view to start the Reward Details Activity- Parameters:
id- id of the Reward
-
startOfferUrl
void startOfferUrl(java.lang.String url)
This notifies the view to start the Offer URL Details Activity- Parameters:
url- url to use when navigating via webview
-
startChallengeDetails
void startChallengeDetails(int id)
This notifies the view to start the Challenge Details Activity- Parameters:
id- id of the Challenge
-
startNewsfeedDetails
void startNewsfeedDetails(int id)
This notifies the view to start the Newsfeed Details Activity- Parameters:
id- id of the Newsfeed
-
startMemberDetails
void startMemberDetails(int id)
This notifies the view to start the Member Details Activity- Parameters:
id- id of the Member
-
startEventsDetails
void startEventsDetails(int id)
This notifies the view to start the Event Details Activity- Parameters:
id- id of the Event
-
startAwardDetails
void startAwardDetails(Award award)
This notifies the view to start anRewardDetailsActivity- Parameters:
award- instance ofAwardto use for startingRewardDetailsActivity
-
showEmptyAttachmentError
void showEmptyAttachmentError()
This notifies the view to show an error message for trying to launch an attachment
-
-