Class DrawImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.DrawImpl
- All Implemented Interfaces:
Draw,SportEvent
The basic implementation of a lottery
-
Constructor Summary
ConstructorsConstructorDescriptionDrawImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionReturns the display idgetId()Returns anUrnuniquely identifying the tournament associated with the current instanceReturns the associated lotteryReturns the sport event nameReturns theUrnspecifying the replacement sport event for the current instanceReturns a list of draw resultsReturns 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 the associated sport identifier (This method its overridden because the superclass SportEvent does not contain the sportId in all cases)Returns the status of the drawReturns theBooleanspecifying if the start time to be determined is set for the current instanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sportradar.unifiedodds.sdk.entities.SportEvent
getId
-
Constructor Details
-
DrawImpl
public DrawImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy)
-
-
Method Details
-
getStatus
Returns the status of the draw -
getResults
Returns a list of draw results- Specified by:
getResultsin interfaceDraw- Returns:
- a list of draw results
-
getLottery
Returns the associated lottery- Specified by:
getLotteryin interfaceDraw- Returns:
- the associated lottery
-
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
-
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
-
getDisplayId
Returns the display id- Specified by:
getDisplayIdin interfaceDraw- Returns:
- the display id
-
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
-