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 theEndlessListView
This 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 void
appendMessagesList(java.util.List<Message> messages, int totalEntries)
This notifies the view when the API for getting the messages returns a successful response.void
removeItemOnAdapter(int messageId)
This notifies the view when the API for dismissing a message succeedsvoid
setLoading(boolean state)
Set loading state of the viewvoid
showDialogMissingOffer()
This notifies the view on error related to missing offervoid
showEmptyAttachmentError()
This notifies the view to show an error message for trying to launch an attachmentvoid
showErrorDismissDialog()
This notifies the view when the API for dismissing a message failsvoid
showMessagesList(java.util.List<Message> messages, int totalEntries)
This notifies the view when the API for getting the messages returns a successful responsevoid
startAwardDetails(Award award)
This notifies the view to start anRewardDetailsActivity
void
startChallengeDetails(int id)
This notifies the view to start the Challenge Details Activityvoid
startEventsDetails(int id)
This notifies the view to start the Event Details Activityvoid
startMemberDetails(int id)
This notifies the view to start the Member Details Activityvoid
startNewsfeedDetails(int id)
This notifies the view to start the Newsfeed Details Activityvoid
startOfferDetails(int id)
This notifies the view to start the Offer Details Activityvoid
startOfferResponseDetails(int id)
This notifies the view to start the Offer Response Details Activityvoid
startOfferUrl(java.lang.String url)
This notifies the view to start the Offer URL Details Activityvoid
startRewardsDetails(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 ofMessage
totalEntries
- 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 ofMessage
totalEntries
- 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 ofAward
to use for startingRewardDetailsActivity
-
showEmptyAttachmentError
void showEmptyAttachmentError()
This notifies the view to show an error message for trying to launch an attachment
-
-