public class MatchImpl extends Object implements Match
| Constructor and Description |
|---|
MatchImpl(Urn id,
Urn sportId,
SportEventCache sportEventCache,
SportEventStatusFactory statusFactory,
SportEntityFactory sportEntityFactory,
List<Locale> locales,
ExceptionHandlingStrategy exceptionHandlingStrategy)
Initializes a new instance of the
MatchImpl |
| Modifier and Type | Method and Description |
|---|---|
TeamCompetitor |
getAwayCompetitor()
Returns a
TeamCompetitor instance describing the away competitor |
BookingStatus |
getBookingStatus()
Returns a
BookingStatus enum member providing booking status of the current instance |
List<Competitor> |
getCompetitors()
Returns a
List of competitors that participate in the sport event
associated with the current instance |
SportEventConditions |
getConditions()
Returns a
SportEventConditions representing live conditions of the sport event associated
with the current instance |
CoverageInfo |
getCoverageInfo()
Returns a
CoverageInfo instance |
DelayedInfo |
getDelayedInfo()
Returns a
DelayedInfo instance describing possible information about a delay |
EventStatus |
getEventStatus()
Returns a
EventStatus |
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)
|
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) |
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 |
TeamCompetitor |
getHomeCompetitor()
Returns a
TeamCompetitor instance describing the home competitor |
Urn |
getId()
Returns an
Urn uniquely identifying the tournament associated with the current instance |
String |
getLiveOdds()
Returns the liveOdds
|
String |
getName(Locale locale)
Returns the sport event name
|
Urn |
getReplacedBy()
Returns the
Urn specifying the replacement sport event for the current instance |
Date |
getScheduledEndTime()
Returns the
Date specifying when the sport event associated with the current
instance was scheduled to end |
Date |
getScheduledTime()
Returns the
Date specifying when the sport event associated with the current
instance was scheduled |
SeasonInfo |
getSeason()
Returns a
SeasonInfo instance providing basic information about
the season to which the sport event associated with the current instance belongs to |
SportSummary |
getSport() |
SportEventType |
getSportEventType()
Returns a
SportEventType indicating the type of the associated event |
Urn |
getSportId()
Returns the associated sport identifier
(This method its overridden because the superclass SportEvent does not contain the sportId in all cases)
|
MatchStatus |
getStatus()
Returns a
CompetitionStatus containing information about the progress of a sport event
associated with the current instance |
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) |
LongTermEvent |
getTournament()
Returns the tournament associated with the current instance
(possible types can be
BasicTournament and Tournament) |
Round |
getTournamentRound()
Returns a
Round instance describing the tournament round to which the
sport event associated with current instance belongs to |
Venue |
getVenue()
Returns the venue where the sport event associated with the current instance will take place
|
Boolean |
isStartTimeTbd()
Returns the
Boolean specifying if the start time to be determined is set for the current instance |
String |
toString()
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdpublic MatchImpl(Urn id, Urn sportId, SportEventCache sportEventCache, SportEventStatusFactory statusFactory, SportEntityFactory sportEntityFactory, List<Locale> locales, ExceptionHandlingStrategy exceptionHandlingStrategy)
MatchImplid - A Urn uniquely identifying the sport event associated with the current instancesportId - A Urn uniquely identifying the sport to which the match is relatedsportEventCache - A SportEventCache instance used to access the associated cache itemsstatusFactory - A SportEventStatusFactory instance used to build status entitiessportEntityFactory - A SportEntityFactory instance used to construct Tournament instanceslocales - A List specifying languages the current instance supportsexceptionHandlingStrategy - the exception handling strategy that should be used by the instancepublic MatchStatus getStatus()
CompetitionStatus containing information about the progress of a sport event
associated with the current instancegetStatus in interface CompetitiongetStatus in interface MatchCompetitionStatus containing information about the progress of a sport event
associated with the current instancepublic Optional<CompetitionStatus> getStatusIfPresent()
MatchStatus containing information about the progress of the sport event
associated with the current instance if already cached (does not make API call)getStatusIfPresent in interface CompetitionMatchStatus containing information about the progress of the sport event
associated with the current instance if already cached (does not make API call)public EventStatus getEventStatus()
EventStatusgetEventStatus in interface CompetitionEventStatuspublic BookingStatus getBookingStatus()
BookingStatus enum member providing booking status of the current instancegetBookingStatus in interface CompetitionBookingStatus enum member providing booking status of the current instancepublic Venue getVenue()
getVenue in interface CompetitionVenue where the sport event associated with the current instance will take placepublic SportEventConditions getConditions()
SportEventConditions representing live conditions of the sport event associated
with the current instancegetConditions in interface CompetitionSportEventConditions representing live conditions of the sport event associated
with the current instancepublic List<Competitor> getCompetitors()
List of competitors that participate in the sport event
associated with the current instancegetCompetitors in interface CompetitionList of competitors that participate in the sport event
associated with the current instancepublic SeasonInfo getSeason()
SeasonInfo instance providing basic information about
the season to which the sport event associated with the current instance belongs togetSeason in interface MatchSeasonInfo instance providing basic information about
the seasonpublic Round getTournamentRound()
Round instance describing the tournament round to which the
sport event associated with current instance belongs togetTournamentRound in interface MatchRound instance describing the tournament roundpublic TeamCompetitor getHomeCompetitor()
TeamCompetitor instance describing the home competitorgetHomeCompetitor in interface MatchTeamCompetitor instance describing the home competitorpublic TeamCompetitor getAwayCompetitor()
TeamCompetitor instance describing the away competitorgetAwayCompetitor in interface MatchTeamCompetitor instance describing the away competitorpublic LongTermEvent getTournament()
BasicTournament and Tournament)getTournament in interface Matchpublic String getName(Locale locale)
getName in interface SportEventlocale - the Locale in which the name should be providedpublic Urn getSportId()
getSportId in interface SportEventpublic Date getScheduledTime()
Date specifying when the sport event associated with the current
instance was scheduledgetScheduledTime in interface SportEventDate instance specifying when the sport event associated with the current
instance was scheduledpublic Date getScheduledEndTime()
Date specifying when the sport event associated with the current
instance was scheduled to endgetScheduledEndTime in interface SportEventDate instance specifying when the sport event associated with the current
instance was scheduled to endpublic Boolean isStartTimeTbd()
Boolean specifying if the start time to be determined is set for the current instanceisStartTimeTbd in interface SportEventBoolean specifying if the
start time to be determined is set for the current instancepublic Urn getReplacedBy()
Urn specifying the replacement sport event for the current instancegetReplacedBy in interface SportEventUrn specifying the replacement sport event for the current instancepublic Fixture getFixture()
Fixture instance containing information about the arranged sport event
A Fixture is a sport event that has been arranged for a particular time and placegetFixture in interface MatchFixture instance containing information about the arranged sport eventpublic EventTimeline getEventTimeline(Locale locale)
getEventTimeline in interface Matchlocale - the locale in which the timeline should be providedpublic Optional<EventTimeline> getEventTimelineIfPresent(Locale locale)
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)getEventTimelineIfPresent in interface Matchlocale - the locale in which the timeline should be providedEventTimeline if already cached (does not make API call)public DelayedInfo getDelayedInfo()
DelayedInfo instance describing possible information about a delaygetDelayedInfo in interface MatchDelayedInfo instance describing information about a possible delaypublic CoverageInfo getCoverageInfo()
CoverageInfo instancegetCoverageInfo in interface MatchCoverageInfo instancepublic String getLiveOdds()
getLiveOdds in interface Competitionpublic SportEventType getSportEventType()
SportEventType indicating the type of the associated eventgetSportEventType in interface CompetitionSportEventType indicating the type of the associated eventpublic SportSummary getSport()
public String toString()
public Urn getId()
Urn uniquely identifying the tournament associated with the current instancegetId in interface SportEventUrn uniquely identifying the tournament associated with the current instanceCopyright © 2016–2025. All rights reserved.