Class SeasonImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.SeasonImpl
- All Implemented Interfaces:
LongTermEvent,Season,SportEvent
Provides methods used to access data of long term events of type season
-
Constructor Summary
ConstructorsConstructorDescriptionSeasonImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a newSeasonImplinstance -
Method Summary
Modifier and TypeMethodDescriptionReturns aListof competitors that participate in the sport event associated with the current instanceReturns aRoundinstance specifying the current season roundReturns aListof groups associated with the associated seasongetId()Returns anUrnuniquely identifying the tournament associated with the current instanceReturns the sport event nameReturns theUrnspecifying the replacement sport event for the current instanceReturns aListof events that belong to the associated seasonReturns 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 aSeasonCoverageinstance containing information about the available coverage for the associated seasongetSport()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 aTournamentInfowhich contains data of the associated tournamentgetYear()Returns theStringrepresentation the year of the seasonReturns 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
-
SeasonImpl
public SeasonImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a newSeasonImplinstance- Parameters:
id- anUrnuniquely identifying the season associated with the current instancesportId- anUrnidentifying the sport to which the season belongslocales- aListof all languages for this instancesportEventCache- aSportEventCacheinstance used to retrieve sport eventssportEntityFactory- aSportEntityFactoryinstance used to constructCompetitioninstancesexceptionHandlingStrategy- the desired exception handling strategy
-
-
Method Details
-
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
-
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
-
getSeasonCoverage
Returns aSeasonCoverageinstance containing information about the available coverage for the associated season- Specified by:
getSeasonCoveragein interfaceSeason- Returns:
- - a
SeasonCoverageinstance containing information about the available coverage
-
getGroups
Returns aListof groups associated with the associated season -
getSchedule
Returns aListof events that belong to the associated season- Specified by:
getSchedulein interfaceSeason- Returns:
- - a
Listof events that belong to the associated season
-
getCurrentRound
Returns aRoundinstance specifying the current season round- Specified by:
getCurrentRoundin interfaceSeason- Returns:
- - a
Roundinstance specifying the current season round
-
getYear
Returns theStringrepresentation the year of the season -
getTournamentInfo
Returns aTournamentInfowhich contains data of the associated tournament- Specified by:
getTournamentInfoin interfaceSeason- Returns:
- a
TournamentInfowhich contains data of the associated season
-
getCompetitors
Returns aListof competitors that participate in the sport event associated with the current instance- Specified by:
getCompetitorsin interfaceSeason- Returns:
- - a
Listof competitors that participate in the sport event associated with the current instance
-
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
-
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
-