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 of EventDateListFragment
    • 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 error
      void showEventDates​(java.util.List<EventDate> eventDates)
      Shows the event on a specific date
      void showEvents​(EventDate eventDate)
      Show the events on current date
      void updateEventList​(java.util.List<Event> events)
      Update the list of events
      void 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
      • 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

      • showEventDates

        void showEventDates​(java.util.List<EventDate> eventDates)
        Shows the event on a specific date
        Parameters:
        eventDates - instance of EventDate 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 of EventDate to populate the dates and event list
      • updateEventList

        void updateEventList​(java.util.List<Event> events)
        Update the list of events
        Parameters:
        events - list of Event to assign in current list
      • updateFavoriteList

        void updateFavoriteList​(java.util.List<Event> events)
        Update the list of favorite events
        Parameters:
        events - list of favorited Event to assign in current list
      • showEvents

        void showEvents​(EventDate eventDate)
        Show the events on current date
        Parameters:
        eventDate - instance of EventDate used to populate the events