Interface Competition

All Superinterfaces:
SportEvent
All Known Subinterfaces:
Match, Stage
All Known Implementing Classes:
MatchImpl, StageImpl

public interface Competition extends SportEvent
Defines methods implemented by classes representing sport events regardless to which sport they belong
  • Method Details

    • getStatus

      CompetitionStatus getStatus()
      Returns a CompetitionStatus containing information about the progress of the sport event associated with the current instance
      Returns:
      - a CompetitionStatus containing information about the progress of the sport event associated with the current instance
    • getStatusIfPresent

      default Optional<CompetitionStatus> getStatusIfPresent()
      Returns a CompetitionStatus containing information about the progress of the sport event associated with the current instance if already cached (does not make API call)
      Returns:
      - a CompetitionStatus containing information about the progress of the sport event associated with the current instance if already cached (does not make API call)
    • getBookingStatus

      BookingStatus getBookingStatus()
      Returns a BookingStatus enum member providing booking status of the current instance
      Returns:
      - a BookingStatus enum member providing booking status of the current instance
    • getVenue

      Venue getVenue()
      Returns the venue where the sport event associated with the current instance will take place
      Returns:
      - the Venue where the sport event associated with the current instance will take place
    • getConditions

      SportEventConditions getConditions()
      Returns a SportEventConditions representing live conditions of the sport event associated with the current instance
      Returns:
      - the SportEventConditions representing live conditions of the sport event associated with the current instance
    • getCompetitors

      List<Competitor> getCompetitors()
      Returns a List of competitors that participate in the sport event associated with the current instance
      Returns:
      - a List of competitors that participate in the sport event associated with the current instance
    • getEventStatus

      default EventStatus getEventStatus()
      Get the event status
      Returns:
      the event status
    • getLiveOdds

      default String getLiveOdds()
      Returns the liveOdds
      Returns:
      the liveOdds
    • getSportEventType

      default SportEventType getSportEventType()
      Returns a SportEventType indicating the type of the associated event
      Returns:
      a SportEventType indicating the type of the associated event