Package org.oxerr.viagogo.client.catalog
Interface EventService
- All Known Implementing Classes:
EventServiceImpl
public interface EventService
-
Method Summary
Modifier and TypeMethodDescriptionfindAll
(PagedResource<Event> pagedEvents, Predicate<Event> predicate) findFirst
(PagedResource<Event> pagedEvents, Predicate<Event> predicate) Get an event.getEventByExternalEventId
(String platform, Long externalEventId) Get an event on the viagogo platform using an identifier from an external platform.default PagedResource<Event>
getEvents
(io.openapitools.jackson.dataformat.hal.HALLink link) getEvents
(EventRequest eventRequest) List events.searchAll
(SearchEventRequest searchEventRequest, Predicate<Event> predicate) default PagedResource<Event>
searchEvents
(io.openapitools.jackson.dataformat.hal.HALLink link) searchEvents
(SearchEventRequest searchEventRequest) Search events.searchFirst
(SearchEventRequest searchEventRequest, Predicate<Event> predicate)
-
Method Details
-
getEvents
List events.- Parameters:
eventRequest
- the request.- Returns:
- the events.
- Throws:
IOException
- indicates any I/O exception.
-
getEvents
default PagedResource<Event> getEvents(io.openapitools.jackson.dataformat.hal.HALLink link) throws IOException - Throws:
IOException
-
getEventByExternalEventId
Get an event on the viagogo platform using an identifier from an external platform.- Parameters:
platform
- The name of the external platform. Can belegacy_stubhub
.externalEventId
- The event identifier from the external platform.- Returns:
- the event.
- Throws:
IOException
- indicates any I/O exception.
-
getEvent
Get an event.- Parameters:
eventId
- The event identifier.- Returns:
- the event.
- Throws:
IOException
- indicates any I/O exception.
-
searchEvents
Search events.- Parameters:
searchEventRequest
- the request.- Returns:
- the events.
- Throws:
IOException
- indicates any I/O exception.
-
searchEvents
default PagedResource<Event> searchEvents(io.openapitools.jackson.dataformat.hal.HALLink link) throws IOException - Throws:
IOException
-
searchAll
default List<Event> searchAll(SearchEventRequest searchEventRequest, Predicate<Event> predicate) throws IOException - Throws:
IOException
-
searchFirst
default Optional<Event> searchFirst(SearchEventRequest searchEventRequest, Predicate<Event> predicate) throws IOException - Throws:
IOException
-
findFirst
-
findAll
-