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.RefreshableView
RefreshableView
class ofEventDateListFragment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initializeList(java.util.List<EventDate> dates)
Initialize the list after download.void
showErrorToast(java.lang.String error)
Shows an errorvoid
showEventDates(java.util.List<EventDate> eventDates)
Shows the event on a specific datevoid
showEvents(EventDate eventDate)
Show the events on current datevoid
updateEventList(java.util.List<Event> events)
Update the list of eventsvoid
updateFavoriteList(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 ofEventDate
to 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 ofEventDate
to populate the dates and event list
-
updateEventList
void updateEventList(java.util.List<Event> events)
Update the list of events- Parameters:
events
- list ofEvent
to assign in current list
-
updateFavoriteList
void updateFavoriteList(java.util.List<Event> events)
Update the list of favorite events- Parameters:
events
- list of favoritedEvent
to assign in current list
-
-