Class EventsAPI

  • All Implemented Interfaces:
    com.cheetahdigital.corekit.rest.RestController

    public class EventsAPI
    extends com.cheetahdigital.corekit.models.module.Controller
    Class for setting the query parameters of Events API.
    • Field Summary

      • Fields inherited from class com.cheetahdigital.corekit.models.module.Controller

        STANDARD_DATE_FORMAT, TIMEZONE_DATE_FORMAT
    • Constructor Summary

      Constructors 
      Constructor Description
      EventsAPI()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEventToFavorite​(EventsParams eventsParams, com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
      Save an event on your watch list
      void cancelEvent​(EventsParams eventsParams, com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
      Remove an event from your watch list
      void getEvent​(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Event>,​Event> listener)
      Get the specific event
      void getEventCategories​(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventCategories>,​EventCategories> listener)
      Get the list of EventCategories
      void getEventDates​(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventDates>,​EventDates> listener)
      Gets list of dates
      void getEventResponse​(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventResponse>,​EventResponse> listener)
      Get the specified event response
      void getEventResponses​(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventResponses>,​EventResponses> listener)
      Get the list of EventResponses
      void getEvents​(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Events>,​Events> listener)
      Get the list of Events
      void removeEventFromFavorite​(EventsParams eventsParams, com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
      Remove an event from your watch list
      void respondToEvent​(java.lang.String latLongJson, EventsParams eventsParams, com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
      Respond to event
      • Methods inherited from class com.cheetahdigital.corekit.models.module.Controller

        createCache, createHttpClient, createRetrofitInterface, evictAllCache, getGsonConfiguration, getRestAdapter, getTimeoutConnectionInSeconds, getTimeoutSocketInSeconds, initialize, removeResponsesFromCache
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventsAPI

        public EventsAPI()
    • Method Detail

      • getEventDates

        public void getEventDates​(EventsParams eventsParams,
                                  boolean clearCache,
                                  com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventDates>,​EventDates> listener)
        Gets list of dates
        Parameters:
        eventsParams - the EventsParams for EventsAPI
        clearCache - set to true to clear previously stored response
        listener - listener that handles the result from API
      • getEvent

        public void getEvent​(EventsParams eventsParams,
                             boolean clearCache,
                             com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Event>,​Event> listener)
        Get the specific event
        Parameters:
        eventsParams - the EventsParams for EventsAPI
        clearCache - set to true to clear previously stored response
        listener - listener that handles the result from API
      • getEventResponse

        public void getEventResponse​(EventsParams eventsParams,
                                     boolean clearCache,
                                     com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventResponse>,​EventResponse> listener)
        Get the specified event response
        Parameters:
        eventsParams - the EventsParams for EventsAPI
        clearCache - set to true to clear previously stored response
        listener - listener that handles the result from API
      • addEventToFavorite

        public void addEventToFavorite​(EventsParams eventsParams,
                                       com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
        Save an event on your watch list
        Parameters:
        eventsParams - the EventsParams for EventsAPI
        listener - listener that handles the result from API
      • respondToEvent

        public void respondToEvent​(java.lang.String latLongJson,
                                   EventsParams eventsParams,
                                   com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
        Respond to event
        Parameters:
        latLongJson - coordinates of the events location
        eventsParams - the EventsParams for EventsAPI
        listener - listener that handles the result from API
      • removeEventFromFavorite

        public void removeEventFromFavorite​(EventsParams eventsParams,
                                            com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
        Remove an event from your watch list
        Parameters:
        eventsParams - the EventsParams for EventsAPI
        listener - listener that handles the result from API
      • cancelEvent

        public void cancelEvent​(EventsParams eventsParams,
                                com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
        Remove an event from your watch list
        Parameters:
        eventsParams - the EventsParams for EventsAPI
        listener - listener that handles the result from API
      • getEvents

        public void getEvents​(EventsParams eventsParams,
                              boolean clearCache,
                              com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Events>,​Events> listener)
        Get the list of Events
        Parameters:
        eventsParams - the EventsParams for EventsAPI
        clearCache - set to true to clear previously stored response
        listener - listener that handles the result from API
      • getEventCategories

        public void getEventCategories​(EventsParams eventsParams,
                                       boolean clearCache,
                                       com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventCategories>,​EventCategories> listener)
        Get the list of EventCategories
        Parameters:
        eventsParams - the EventsParams for EventsAPI
        clearCache - set to true to clear previously stored response
        listener - listener that handles the result from API
      • getEventResponses

        public void getEventResponses​(EventsParams eventsParams,
                                      boolean clearCache,
                                      com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventResponses>,​EventResponses> listener)
        Get the list of EventResponses
        Parameters:
        eventsParams - the EventsParams for EventsAPI
        clearCache - set to true to clear previously stored response
        listener - listener that handles the result from API