Interface EventService


public interface EventService
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<org.oxerr.viagogo.model.response.catalog.Event>
    findAll(org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event> pagedEvents, Predicate<org.oxerr.viagogo.model.response.catalog.Event> predicate)
     
    default Optional<org.oxerr.viagogo.model.response.catalog.Event>
    findFirst(org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event> pagedEvents, Predicate<org.oxerr.viagogo.model.response.catalog.Event> predicate)
     
    Optional<org.oxerr.viagogo.model.response.catalog.Event>
    getEvent(Long eventId)
    Get an event.
    Optional<org.oxerr.viagogo.model.response.catalog.Event>
    getEventByExternalEventId(String platform, Long externalEventId)
    Get an event on the viagogo platform using an identifier from an external platform.
    default org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event>
    getEvents(io.openapitools.jackson.dataformat.hal.HALLink link)
     
    org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event>
    getEvents(org.oxerr.viagogo.model.request.catalog.EventRequest eventRequest)
    List events.
    default List<org.oxerr.viagogo.model.response.catalog.Event>
    searchAll(org.oxerr.viagogo.model.request.catalog.SearchEventRequest searchEventRequest, Predicate<org.oxerr.viagogo.model.response.catalog.Event> predicate)
     
    default org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event>
    searchEvents(io.openapitools.jackson.dataformat.hal.HALLink link)
     
    org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event>
    searchEvents(org.oxerr.viagogo.model.request.catalog.SearchEventRequest searchEventRequest)
    Search events.
    default Optional<org.oxerr.viagogo.model.response.catalog.Event>
    searchFirst(org.oxerr.viagogo.model.request.catalog.SearchEventRequest searchEventRequest, Predicate<org.oxerr.viagogo.model.response.catalog.Event> predicate)
     
  • Method Details

    • getEvents

      org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event> getEvents(org.oxerr.viagogo.model.request.catalog.EventRequest eventRequest) throws IOException
      List events.
      Parameters:
      eventRequest - the request.
      Returns:
      the events.
      Throws:
      IOException - indicates any I/O exception.
    • getEvents

      default org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event> getEvents(io.openapitools.jackson.dataformat.hal.HALLink link) throws IOException
      Throws:
      IOException
    • getEventByExternalEventId

      Optional<org.oxerr.viagogo.model.response.catalog.Event> getEventByExternalEventId(String platform, Long externalEventId) throws IOException
      Get an event on the viagogo platform using an identifier from an external platform.
      Parameters:
      platform - The name of the external platform. Can be legacy_stubhub.
      externalEventId - The event identifier from the external platform.
      Returns:
      the event.
      Throws:
      IOException - indicates any I/O exception.
    • getEvent

      Optional<org.oxerr.viagogo.model.response.catalog.Event> getEvent(Long eventId) throws IOException
      Get an event.
      Parameters:
      eventId - The event identifier.
      Returns:
      the event.
      Throws:
      IOException - indicates any I/O exception.
    • searchEvents

      org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event> searchEvents(org.oxerr.viagogo.model.request.catalog.SearchEventRequest searchEventRequest) throws IOException
      Search events.
      Parameters:
      searchEventRequest - the request.
      Returns:
      the events.
      Throws:
      IOException - indicates any I/O exception.
    • searchEvents

      default org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event> searchEvents(io.openapitools.jackson.dataformat.hal.HALLink link) throws IOException
      Throws:
      IOException
    • searchAll

      default List<org.oxerr.viagogo.model.response.catalog.Event> searchAll(org.oxerr.viagogo.model.request.catalog.SearchEventRequest searchEventRequest, Predicate<org.oxerr.viagogo.model.response.catalog.Event> predicate) throws IOException
      Throws:
      IOException
    • searchFirst

      default Optional<org.oxerr.viagogo.model.response.catalog.Event> searchFirst(org.oxerr.viagogo.model.request.catalog.SearchEventRequest searchEventRequest, Predicate<org.oxerr.viagogo.model.response.catalog.Event> predicate) throws IOException
      Throws:
      IOException
    • findFirst

      default Optional<org.oxerr.viagogo.model.response.catalog.Event> findFirst(org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event> pagedEvents, Predicate<org.oxerr.viagogo.model.response.catalog.Event> predicate)
    • findAll

      default List<org.oxerr.viagogo.model.response.catalog.Event> findAll(org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.catalog.Event> pagedEvents, Predicate<org.oxerr.viagogo.model.response.catalog.Event> predicate)