Class EventsAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.event.core.api.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.
-
-
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 listvoid
cancelEvent(EventsParams eventsParams, com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
Remove an event from your watch listvoid
getEvent(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Event>,Event> listener)
Get the specific eventvoid
getEventCategories(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventCategories>,EventCategories> listener)
Get the list of EventCategoriesvoid
getEventDates(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventDates>,EventDates> listener)
Gets list of datesvoid
getEventResponse(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventResponse>,EventResponse> listener)
Get the specified event responsevoid
getEventResponses(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventResponses>,EventResponses> listener)
Get the list of EventResponsesvoid
getEvents(EventsParams eventsParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Events>,Events> listener)
Get the list of Eventsvoid
removeEventFromFavorite(EventsParams eventsParams, com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
Remove an event from your watch listvoid
respondToEvent(java.lang.String latLongJson, EventsParams eventsParams, com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
Respond to event
-
-
-
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
- theEventsParams
forEventsAPI
clearCache
- set totrue
to clear previously stored responselistener
- 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
- theEventsParams
forEventsAPI
clearCache
- set totrue
to clear previously stored responselistener
- 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
- theEventsParams
forEventsAPI
clearCache
- set totrue
to clear previously stored responselistener
- 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
- theEventsParams
forEventsAPI
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 locationeventsParams
- theEventsParams
forEventsAPI
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
- theEventsParams
forEventsAPI
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
- theEventsParams
forEventsAPI
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
- theEventsParams
forEventsAPI
clearCache
- set totrue
to clear previously stored responselistener
- 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
- theEventsParams
forEventsAPI
clearCache
- set totrue
to clear previously stored responselistener
- 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
- theEventsParams
forEventsAPI
clearCache
- set totrue
to clear previously stored responselistener
- listener that handles the result from API
-
-