Class LotteryImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.LotteryImpl
- All Implemented Interfaces:
LongTermEvent,Lottery,SportEvent
The basic implementation of a lottery
-
Constructor Summary
ConstructorsConstructorDescriptionLotteryImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionReturns the associated bonus infoReturns aCategorySummaryrepresenting the category associated with the current instanceReturns the associated draw infogetId()Returns anUrnuniquely identifying the tournament associated with the current instanceReturns the sport event nameReturns theUrnspecifying the replacement sport event for the current instanceReturns the lottery drawsReturns 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 unique sport identifier to which this event is associatedReturns aTournamentCoverageinstance which describes the associated tournament coverage information (no coverage info available for lotteries)Returns 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
-
LotteryImpl
public LotteryImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy)
-
-
Method Details
-
getCategory
Returns aCategorySummaryrepresenting the category associated with the current instance- Specified by:
getCategoryin interfaceLottery- Returns:
- a
CategorySummaryrepresenting the category associated with the current instance
-
getBonusInfo
Returns the associated bonus info- Specified by:
getBonusInfoin interfaceLottery- Returns:
- the associated bonus info
-
getDrawInfo
Returns the associated draw info- Specified by:
getDrawInfoin interfaceLottery- Returns:
- the associated draw info
-
getScheduledDraws
Returns the lottery draws- Specified by:
getScheduledDrawsin interfaceLottery- Returns:
- the lottery draw
-
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 (no coverage info available for lotteries)- Specified by:
getTournamentCoveragein interfaceLongTermEvent- Returns:
- a
TournamentCoverageinstance describing the tournament coverage information
-
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 unique sport identifier to which this event is associated- 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
-
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
-