Class TournamentImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.TournamentImpl
- All Implemented Interfaces:
LongTermEvent,SportEvent,Tournament,PreloadableEntity
Represents a sport tournament
-
Constructor Summary
ConstructorsConstructorDescriptionTournamentImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a newTournamentImplinstance -
Method Summary
Modifier and TypeMethodDescriptionvoidensureSummaryIsFetchedForLanguages(List<Locale> languages, RequestOptions requestOptions) Returns aCategorySummaryrepresenting the category associated with the current instanceReturns aCurrentSeasonInfowhich contains data about the season in which the current instance tournament is happeninggetId()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 scheduledReturns a list of associated tournament seasonsgetSport()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
-
TournamentImpl
public TournamentImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a newTournamentImplinstance- Parameters:
id- anUrnuniquely identifying the tournament associated with the current instancesportId- anUrnidentifying the sport to which the tournament belongslocales- aListof all languages for this instancesportEventCache- the cache used to retrieve additional sport event datasportEntityFactory- 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 interfaceTournament- Returns:
- - a
CategorySummaryrepresenting the category associated with the current instance
-
getCurrentSeason
Returns aCurrentSeasonInfowhich contains data about the season in which the current instance tournament is happening- Specified by:
getCurrentSeasonin interfaceTournament- Returns:
- - a
CurrentSeasonInfowhich provides data about the season in which the current instance tournament is happening
-
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
-
getSeasons
Returns a list of associated tournament seasons- Specified by:
getSeasonsin interfaceTournament- Returns:
- a list of associated tournament seasons
-
isExhibitionGames
Returns theBooleanspecifying if the tournament is exhibition game- Specified by:
isExhibitionGamesin interfaceTournament- Returns:
- if available, the
Booleanspecifying if the tournament is exhibition game
-
getSchedule
Returns aListof events that belong to the associated tournament- Specified by:
getSchedulein interfaceTournament- 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
-