java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.MatchImpl
All Implemented Interfaces:
Competition, Match, SportEvent

public class MatchImpl extends Object implements Match
Represents a sport event with home and away competitor
  • Constructor Details

  • Method Details

    • getStatus

      public MatchStatus getStatus()
      Returns a CompetitionStatus containing information about the progress of a sport event associated with the current instance
      Specified by:
      getStatus in interface Competition
      Specified by:
      getStatus in interface Match
      Returns:
      - a CompetitionStatus containing information about the progress of a sport event associated with the current instance
    • getStatusIfPresent

      public Optional<CompetitionStatus> getStatusIfPresent()
      Returns a MatchStatus containing information about the progress of the sport event associated with the current instance if already cached (does not make API call)
      Specified by:
      getStatusIfPresent in interface Competition
      Returns:
      - a MatchStatus containing information about the progress of the sport event associated with the current instance if already cached (does not make API call)
    • getEventStatus

      public EventStatus getEventStatus()
      Returns a EventStatus
      Specified by:
      getEventStatus in interface Competition
      Returns:
      a EventStatus
    • getBookingStatus

      public BookingStatus getBookingStatus()
      Returns a BookingStatus enum member providing booking status of the current instance
      Specified by:
      getBookingStatus in interface Competition
      Returns:
      - a BookingStatus enum member providing booking status of the current instance
    • getVenue

      public Venue getVenue()
      Returns the venue where the sport event associated with the current instance will take place
      Specified by:
      getVenue in interface Competition
      Returns:
      - the Venue where the sport event associated with the current instance will take place
    • getConditions

      public SportEventConditions getConditions()
      Returns a SportEventConditions representing live conditions of the sport event associated with the current instance
      Specified by:
      getConditions in interface Competition
      Returns:
      - the SportEventConditions representing live conditions of the sport event associated with the current instance
    • getCompetitors

      public List<Competitor> getCompetitors()
      Returns a List of competitors that participate in the sport event associated with the current instance
      Specified by:
      getCompetitors in interface Competition
      Returns:
      - a List of competitors that participate in the sport event associated with the current instance
    • getSeason

      public SeasonInfo getSeason()
      Returns a SeasonInfo instance providing basic information about the season to which the sport event associated with the current instance belongs to
      Specified by:
      getSeason in interface Match
      Returns:
      - a SeasonInfo instance providing basic information about the season
    • getTournamentRound

      public Round getTournamentRound()
      Returns a Round instance describing the tournament round to which the sport event associated with current instance belongs to
      Specified by:
      getTournamentRound in interface Match
      Returns:
      - a Round instance describing the tournament round
    • getHomeCompetitor

      public TeamCompetitor getHomeCompetitor()
      Returns a TeamCompetitor instance describing the home competitor
      Specified by:
      getHomeCompetitor in interface Match
      Returns:
      - a TeamCompetitor instance describing the home competitor
    • getAwayCompetitor

      public TeamCompetitor getAwayCompetitor()
      Returns a TeamCompetitor instance describing the away competitor
      Specified by:
      getAwayCompetitor in interface Match
      Returns:
      - a TeamCompetitor instance describing the away competitor
    • getTournament

      public LongTermEvent getTournament()
      Returns the tournament associated with the current instance (possible types can be BasicTournament and Tournament)
      Specified by:
      getTournament in interface Match
      Returns:
      - the tournament associated with the current instance
    • getName

      public String getName(Locale locale)
      Returns the sport event name
      Specified by:
      getName in interface SportEvent
      Parameters:
      locale - the Locale in which the name should be provided
      Returns:
      the sport event name if available; otherwise null
    • getSportId

      public Urn getSportId()
      Returns the associated sport identifier (This method its overridden because the superclass SportEvent does not contain the sportId in all cases)
      Specified by:
      getSportId in interface SportEvent
      Returns:
      - the unique sport identifier to which this event is associated
    • getScheduledTime

      public Date getScheduledTime()
      Returns the Date specifying when the sport event associated with the current instance was scheduled
      Specified by:
      getScheduledTime in interface SportEvent
      Returns:
      - a Date instance specifying when the sport event associated with the current instance was scheduled
    • getScheduledEndTime

      public Date getScheduledEndTime()
      Returns the Date specifying when the sport event associated with the current instance was scheduled to end
      Specified by:
      getScheduledEndTime in interface SportEvent
      Returns:
      - a Date instance specifying when the sport event associated with the current instance was scheduled to end
    • isStartTimeTbd

      public Boolean isStartTimeTbd()
      Returns the Boolean specifying if the start time to be determined is set for the current instance
      Specified by:
      isStartTimeTbd in interface SportEvent
      Returns:
      if available, the Boolean specifying if the start time to be determined is set for the current instance
    • getReplacedBy

      public Urn getReplacedBy()
      Returns the Urn specifying the replacement sport event for the current instance
      Specified by:
      getReplacedBy in interface SportEvent
      Returns:
      if available, the Urn specifying the replacement sport event for the current instance
    • getFixture

      public Fixture getFixture()
      Returns the Fixture instance containing information about the arranged sport event A Fixture is a sport event that has been arranged for a particular time and place
      Specified by:
      getFixture in interface Match
      Returns:
      - the Fixture instance containing information about the arranged sport event
    • getEventTimeline

      public EventTimeline getEventTimeline(Locale locale)
      Returns the associated event timeline (NOTICE: the timeline is cached only after the event status indicates that the event has finished)
      Specified by:
      getEventTimeline in interface Match
      Parameters:
      locale - the locale in which the timeline should be provided
      Returns:
      the associated event timeline
    • getEventTimelineIfPresent

      public Optional<EventTimeline> getEventTimelineIfPresent(Locale locale)
      Returns the associated EventTimeline if already cached (does not make API call) (NOTICE: the timeline is cached only after the event status indicates that the event has finished)
      Specified by:
      getEventTimelineIfPresent in interface Match
      Parameters:
      locale - the locale in which the timeline should be provided
      Returns:
      - a associated EventTimeline if already cached (does not make API call)
    • getDelayedInfo

      public DelayedInfo getDelayedInfo()
      Returns a DelayedInfo instance describing possible information about a delay
      Specified by:
      getDelayedInfo in interface Match
      Returns:
      a DelayedInfo instance describing information about a possible delay
    • getCoverageInfo

      public CoverageInfo getCoverageInfo()
      Returns a CoverageInfo instance
      Specified by:
      getCoverageInfo in interface Match
      Returns:
      a CoverageInfo instance
    • getLiveOdds

      public String getLiveOdds()
      Returns the liveOdds
      Specified by:
      getLiveOdds in interface Competition
      Returns:
      the liveOdds
    • getSportEventType

      public SportEventType getSportEventType()
      Returns a SportEventType indicating the type of the associated event
      Specified by:
      getSportEventType in interface Competition
      Returns:
      a SportEventType indicating the type of the associated event
    • getSport

      public SportSummary getSport()
      Specified by:
      getSport in interface Match
    • toString

      public String toString()
      Returns a String describing the current Match instance
      Overrides:
      toString in class Object
      Returns:
      - a String describing the current Match instance
    • getId

      public Urn getId()
      Returns an Urn uniquely identifying the tournament associated with the current instance
      Specified by:
      getId in interface SportEvent
      Returns:
      - an Urn uniquely identifying the tournament associated with the current instance