Interface EventDateListView
-
- All Superinterfaces:
com.cheetahdigital.uikit.architecture.lce.LceView,com.cheetahdigital.uikit.architecture.lce.MvpLceView,com.cheetahdigital.uikit.architecture.mvp.MvpView,com.cheetahdigital.uikit.architecture.refreshable.RefreshableView
- All Known Implementing Classes:
EventDateListFragment
public interface EventDateListView extends com.cheetahdigital.uikit.architecture.refreshable.RefreshableViewRefreshableViewclass ofEventDateListFragment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitializeList(java.util.List<EventDate> dates)Initialize the list after download.voidshowErrorToast(java.lang.String error)Shows an errorvoidshowEventDates(java.util.List<EventDate> eventDates)Shows the event on a specific datevoidshowEvents(EventDate eventDate)Show the events on current datevoidupdateEventList(java.util.List<Event> events)Update the list of eventsvoidupdateFavoriteList(java.util.List<Event> events)Update the list of favorite events-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.LceView
onLoadFailed, onLoadSuccess, setErrorViewClickListener
-
-
-
-
Method Detail
-
showEventDates
void showEventDates(java.util.List<EventDate> eventDates)
Shows the event on a specific date- Parameters:
eventDates- instance ofEventDateto use for updating event and favorite list
-
showErrorToast
void showErrorToast(java.lang.String error)
Shows an error- Parameters:
error- info about the error
-
initializeList
void initializeList(java.util.List<EventDate> dates)
Initialize the list after download. This should be triggered only once due to calculating of nearest date on current date- Parameters:
dates- list ofEventDateto populate the dates and event list
-
updateEventList
void updateEventList(java.util.List<Event> events)
Update the list of events- Parameters:
events- list ofEventto assign in current list
-
updateFavoriteList
void updateFavoriteList(java.util.List<Event> events)
Update the list of favorite events- Parameters:
events- list of favoritedEventto assign in current list
-
-