Class MatchImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.MatchImpl
- All Implemented Interfaces:
Competition,Match,SportEvent
Represents a sport event with home and away competitor
-
Constructor Summary
ConstructorsConstructorDescriptionMatchImpl(Urn id, Urn sportId, SportEventCache sportEventCache, SportEventStatusFactory statusFactory, SportEntityFactory sportEntityFactory, List<Locale> locales, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a new instance of theMatchImpl -
Method Summary
Modifier and TypeMethodDescriptionReturns aTeamCompetitorinstance describing the away competitorReturns aBookingStatusenum member providing booking status of the current instanceReturns aListof competitors that participate in the sport event associated with the current instanceReturns aSportEventConditionsrepresenting live conditions of the sport event associated with the current instanceReturns aCoverageInfoinstanceReturns aDelayedInfoinstance describing possible information about a delayReturns aEventStatusgetEventTimeline(Locale locale) Returns the associated event timeline (NOTICE: the timeline is cached only after the event status indicates that the event has finished)getEventTimelineIfPresent(Locale locale) Returns the associatedEventTimelineif already cached (does not make API call) (NOTICE: the timeline is cached only after the event status indicates that the event has finished)Returns theFixtureinstance containing information about the arranged sport event A Fixture is a sport event that has been arranged for a particular time and placeReturns aTeamCompetitorinstance describing the home competitorgetId()Returns anUrnuniquely identifying the tournament associated with the current instanceReturns the liveOddsReturns the sport event nameReturns theUrnspecifying the replacement sport event for the current instanceReturns theDatespecifying when the sport event associated with the current instance was scheduled to endReturns theDatespecifying when the sport event associated with the current instance was scheduledReturns aSeasonInfoinstance providing basic information about the season to which the sport event associated with the current instance belongs togetSport()Returns aSportEventTypeindicating the type of the associated eventReturns the associated sport identifier (This method its overridden because the superclass SportEvent does not contain the sportId in all cases)Returns aCompetitionStatuscontaining information about the progress of a sport event associated with the current instanceReturns aMatchStatuscontaining information about the progress of the sport event associated with the current instance if already cached (does not make API call)Returns the tournament associated with the current instance (possible types can beBasicTournamentandTournament)Returns aRoundinstance describing the tournament round to which the sport event associated with current instance belongs togetVenue()Returns the venue where the sport event associated with the current instance will take placeReturns theBooleanspecifying if the start time to be determined is set for the current instancetoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sportradar.unifiedodds.sdk.entities.SportEvent
getId
-
Constructor Details
-
MatchImpl
public MatchImpl(Urn id, Urn sportId, SportEventCache sportEventCache, SportEventStatusFactory statusFactory, SportEntityFactory sportEntityFactory, List<Locale> locales, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a new instance of theMatchImpl- Parameters:
id- AUrnuniquely identifying the sport event associated with the current instancesportId- AUrnuniquely identifying the sport to which the match is relatedsportEventCache- ASportEventCacheinstance used to access the associated cache itemsstatusFactory- ASportEventStatusFactoryinstance used to build status entitiessportEntityFactory- ASportEntityFactoryinstance used to constructTournamentinstanceslocales- AListspecifying languages the current instance supportsexceptionHandlingStrategy- the exception handling strategy that should be used by the instance
-
-
Method Details
-
getStatus
Returns aCompetitionStatuscontaining information about the progress of a sport event associated with the current instance- Specified by:
getStatusin interfaceCompetition- Specified by:
getStatusin interfaceMatch- Returns:
- - a
CompetitionStatuscontaining information about the progress of a sport event associated with the current instance
-
getStatusIfPresent
Returns aMatchStatuscontaining information about the progress of the sport event associated with the current instance if already cached (does not make API call)- Specified by:
getStatusIfPresentin interfaceCompetition- Returns:
- - a
MatchStatuscontaining information about the progress of the sport event associated with the current instance if already cached (does not make API call)
-
getEventStatus
Returns aEventStatus- Specified by:
getEventStatusin interfaceCompetition- Returns:
- a
EventStatus
-
getBookingStatus
Returns aBookingStatusenum member providing booking status of the current instance- Specified by:
getBookingStatusin interfaceCompetition- Returns:
- - a
BookingStatusenum member providing booking status of the current instance
-
getVenue
Returns the venue where the sport event associated with the current instance will take place- Specified by:
getVenuein interfaceCompetition- Returns:
- - the
Venuewhere the sport event associated with the current instance will take place
-
getConditions
Returns aSportEventConditionsrepresenting live conditions of the sport event associated with the current instance- Specified by:
getConditionsin interfaceCompetition- Returns:
- - the
SportEventConditionsrepresenting live conditions of the sport event associated with the current instance
-
getCompetitors
Returns aListof competitors that participate in the sport event associated with the current instance- Specified by:
getCompetitorsin interfaceCompetition- Returns:
- - a
Listof competitors that participate in the sport event associated with the current instance
-
getSeason
Returns aSeasonInfoinstance providing basic information about the season to which the sport event associated with the current instance belongs to- Specified by:
getSeasonin interfaceMatch- Returns:
- - a
SeasonInfoinstance providing basic information about the season
-
getTournamentRound
Returns aRoundinstance describing the tournament round to which the sport event associated with current instance belongs to- Specified by:
getTournamentRoundin interfaceMatch- Returns:
- - a
Roundinstance describing the tournament round
-
getHomeCompetitor
Returns aTeamCompetitorinstance describing the home competitor- Specified by:
getHomeCompetitorin interfaceMatch- Returns:
- - a
TeamCompetitorinstance describing the home competitor
-
getAwayCompetitor
Returns aTeamCompetitorinstance describing the away competitor- Specified by:
getAwayCompetitorin interfaceMatch- Returns:
- - a
TeamCompetitorinstance describing the away competitor
-
getTournament
Returns the tournament associated with the current instance (possible types can beBasicTournamentandTournament)- Specified by:
getTournamentin interfaceMatch- Returns:
- - the tournament associated with the current instance
-
getName
Returns the sport event name- Specified by:
getNamein interfaceSportEvent- Parameters:
locale- theLocalein which the name should be provided- Returns:
- the sport event name if available; otherwise null
-
getSportId
Returns the associated sport identifier (This method its overridden because the superclass SportEvent does not contain the sportId in all cases)- Specified by:
getSportIdin interfaceSportEvent- Returns:
- - the unique sport identifier to which this event is associated
-
getScheduledTime
Returns theDatespecifying when the sport event associated with the current instance was scheduled- Specified by:
getScheduledTimein interfaceSportEvent- Returns:
- - a
Dateinstance specifying when the sport event associated with the current instance was scheduled
-
getScheduledEndTime
Returns theDatespecifying when the sport event associated with the current instance was scheduled to end- Specified by:
getScheduledEndTimein interfaceSportEvent- Returns:
- - a
Dateinstance specifying when the sport event associated with the current instance was scheduled to end
-
isStartTimeTbd
Returns theBooleanspecifying if the start time to be determined is set for the current instance- Specified by:
isStartTimeTbdin interfaceSportEvent- Returns:
- if available, the
Booleanspecifying if the start time to be determined is set for the current instance
-
getReplacedBy
Returns theUrnspecifying the replacement sport event for the current instance- Specified by:
getReplacedByin interfaceSportEvent- Returns:
- if available, the
Urnspecifying the replacement sport event for the current instance
-
getFixture
Returns theFixtureinstance 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:
getFixturein interfaceMatch- Returns:
- - the
Fixtureinstance containing information about the arranged sport event
-
getEventTimeline
Returns the associated event timeline (NOTICE: the timeline is cached only after the event status indicates that the event has finished)- Specified by:
getEventTimelinein interfaceMatch- Parameters:
locale- the locale in which the timeline should be provided- Returns:
- the associated event timeline
-
getEventTimelineIfPresent
Returns the associatedEventTimelineif 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:
getEventTimelineIfPresentin interfaceMatch- Parameters:
locale- the locale in which the timeline should be provided- Returns:
- - a associated
EventTimelineif already cached (does not make API call)
-
getDelayedInfo
Returns aDelayedInfoinstance describing possible information about a delay- Specified by:
getDelayedInfoin interfaceMatch- Returns:
- a
DelayedInfoinstance describing information about a possible delay
-
getCoverageInfo
Returns aCoverageInfoinstance- Specified by:
getCoverageInfoin interfaceMatch- Returns:
- a
CoverageInfoinstance
-
getLiveOdds
Returns the liveOdds- Specified by:
getLiveOddsin interfaceCompetition- Returns:
- the liveOdds
-
getSportEventType
Returns aSportEventTypeindicating the type of the associated event- Specified by:
getSportEventTypein interfaceCompetition- Returns:
- a
SportEventTypeindicating the type of the associated event
-
getSport
-
toString
-
getId
Returns anUrnuniquely identifying the tournament associated with the current instance- Specified by:
getIdin interfaceSportEvent- Returns:
- - an
Urnuniquely identifying the tournament associated with the current instance
-