Class BasicTournamentImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.BasicTournamentImpl
- All Implemented Interfaces:
BasicTournament,LongTermEvent,SportEvent,PreloadableEntity
Represents a sport tournament
-
Constructor Summary
ConstructorsConstructorDescriptionBasicTournamentImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a newBasicTournamentImplinstance -
Method Summary
Modifier and TypeMethodDescriptionvoidensureSummaryIsFetchedForLanguages(List<Locale> languages, RequestOptions requestOptions) Returns aCategorySummaryrepresenting the category associated with the current instanceReturns aListof competitors that participate in the sport event associated with the current instancegetId()Returns anUrnuniquely identifying the tournament associated with the current instanceReturns the name of the current long term event translated to the specified languageReturns theUrnspecifying the replacement sport event for the current instanceReturns aListof events that belong to the associated tournamentReturns 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 scheduledgetSport()Returns aSportSummaryinstance representing the sport associated with the current instanceReturns the associated sport identifier (This method its overridden because the superclass SportEvent does not contain the sportId in all cases)Returns aTournamentCoverageinstance which describes the associated tournament coverage informationReturns theBooleanspecifying if the tournament is exhibition gameReturns theBooleanspecifying if the start time to be determined is set for the current instancetoString()Returns aStringdescribing the currentTournamentinstanceMethods 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
-
BasicTournamentImpl
public BasicTournamentImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a newBasicTournamentImplinstance- Parameters:
id- anUrnuniquely identifying the tournament associated with the current instancesportId- anUrnidentifying the sport to which the tournament belongslocales- aListof all languages for this instancesportEntityFactory- aSportEntityFactoryinstance used to constructCompetitioninstancesexceptionHandlingStrategy- the desired exception handling strategy
-
-
Method Details
-
getName
Returns the name of the current long term event translated to the specified language- Specified by:
getNamein interfaceSportEvent- Parameters:
locale- - aLocalespecifying in which language the name should be returned- Returns:
- - the name of the current long term event translated to the specified language
-
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
-
getCategory
Returns aCategorySummaryrepresenting the category associated with the current instance- Specified by:
getCategoryin interfaceBasicTournament- Returns:
- - a
CategorySummaryrepresenting the category associated with the current instance
-
getCompetitors
Returns aListof competitors that participate in the sport event associated with the current instance- Specified by:
getCompetitorsin interfaceBasicTournament- Returns:
- - a
Listof competitors that participate in the sport event associated with the current instance
-
isExhibitionGames
Returns theBooleanspecifying if the tournament is exhibition game- Specified by:
isExhibitionGamesin interfaceBasicTournament- Returns:
- if available, the
Booleanspecifying if the tournament is exhibition game
-
getSport
Returns aSportSummaryinstance representing the sport associated with the current instance- Specified by:
getSportin interfaceLongTermEvent- Returns:
- a
SportSummaryinstance representing the sport associated with the current instance
-
getTournamentCoverage
Returns aTournamentCoverageinstance which describes the associated tournament coverage information- Specified by:
getTournamentCoveragein interfaceLongTermEvent- Returns:
- a
TournamentCoverageinstance describing the tournament coverage information
-
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
-
getSchedule
Returns aListof events that belong to the associated tournament- Specified by:
getSchedulein interfaceBasicTournament- Returns:
- - a
Listof events that belong to the associated tournament
-
toString
Returns aStringdescribing the currentTournamentinstance- Overrides:
toStringin classObject- Returns:
- - a
Stringdescribing the currentTournamentinstance
-
ensureSummaryIsFetchedForLanguages
public void ensureSummaryIsFetchedForLanguages(List<Locale> languages, RequestOptions requestOptions) - Specified by:
ensureSummaryIsFetchedForLanguagesin interfacePreloadableEntity
-
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
-