Class DrawCiImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.impl.ci.DrawCiImpl
- All Implemented Interfaces:
CacheItem,DrawCi,SportEventCi,ExportableCacheItem
A draw cache item implementation
-
Method Summary
Modifier and TypeMethodDescriptionexport()Export item's propertiesReturns the display idgetId()Returns theUrnrepresenting id of the related entityReturns the associated lottery idReturns theMapcontaining translated names of the itemReturns theUrnspecifying the replacement sport event for the current instancegetResults(List<Locale> locales) Returns a list of draw resultsReturns theDatespecifying when the sport event associated with the current instance was scheduledReturns 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 scheduled to end (no api request is invoked)Returns theDatespecifying when the sport event associated with the current instance was scheduled (no api request is invoked)Returns the status of the drawbooleanhasTranslationsLoadedFor(List<Locale> localeList) Determines whether the current instance has translations for the specified languagesReturns theBooleanspecifying if the start time to be determined is set for the current instance<T> voidMerges the new provided data into the cache item
-
Method Details
-
getId
Returns theUrnrepresenting id of the related entity -
getScheduled
Returns theDatespecifying when the sport event associated with the current instance was scheduled- Specified by:
getScheduledin interfaceSportEventCi- Returns:
- if available, the
Datespecifying when the sport event associated with the current instance was scheduled; otherwise null;
-
getStatus
Returns the status of the draw -
getResults
Returns a list of draw results- Specified by:
getResultsin interfaceDrawCi- Parameters:
locales- aListspecifying the required languages- Returns:
- a list of draw results
-
getLotteryId
Returns the associated lottery id- Specified by:
getLotteryIdin interfaceDrawCi- Returns:
- the associated lottery id
-
getDisplayId
Returns the display id- Specified by:
getDisplayIdin interfaceDrawCi- Returns:
- the display id
-
getScheduledEnd
Returns theDatespecifying when the sport event associated with the current instance was scheduled to end- Specified by:
getScheduledEndin interfaceSportEventCi- Returns:
- if available, the
Datespecifying when the sport event associated with the current instance was scheduled to end; otherwise null;
-
getScheduledRaw
Returns theDatespecifying when the sport event associated with the current instance was scheduled (no api request is invoked)- Specified by:
getScheduledRawin interfaceSportEventCi- Returns:
- if available, the
Datespecifying when the sport event associated with the current instance was scheduled; otherwise null;
-
getScheduledEndRaw
Returns theDatespecifying when the sport event associated with the current instance was scheduled to end (no api request is invoked)- Specified by:
getScheduledEndRawin interfaceSportEventCi- Returns:
- if available, the
Datespecifying when the sport event associated with the current instance was scheduled to end; otherwise null;
-
isStartTimeTbd
Returns theBooleanspecifying if the start time to be determined is set for the current instance- Specified by:
isStartTimeTbdin interfaceSportEventCi- 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 interfaceSportEventCi- Returns:
- if available, the
Urnspecifying the replacement sport event for the current instance
-
getNames
Returns theMapcontaining translated names of the item -
hasTranslationsLoadedFor
Determines whether the current instance has translations for the specified languages- Specified by:
hasTranslationsLoadedForin interfaceCacheItem- Parameters:
localeList- aListspecifying the required languages- Returns:
trueif the current instance contains data in the required locals, otherwisefalse.
-
merge
Merges the new provided data into the cache item -
export
Description copied from interface:ExportableCacheItemExport item's properties- Specified by:
exportin interfaceExportableCacheItem- Returns:
- An
ExportableCiinstance containing all relevant properties
-