Class LotteryCiImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.impl.ci.LotteryCiImpl
- All Implemented Interfaces:
CacheItem,LotteryCi,SportEventCi,ExportableCacheItem
Created on 18/01/2018.
Lottery cache item
-
Method Summary
Modifier and TypeMethodDescriptionexport()Export item's propertiesReturns the associated bonus infoReturns the associated category idReturns the associated draw infogetId()Returns theUrnrepresenting id of the related entityReturns theMapcontaining translated names of the itemReturns theUrnspecifying the replacement sport event for the current instanceReturns theDatespecifying when the sport event associated with the current instance was scheduledReturns the lottery draws scheduleReturns 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)booleanhasTranslationsLoadedFor(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 -
getNames
Returns theMapcontaining translated names of the item -
getCategoryId
Returns the associated category id- Specified by:
getCategoryIdin interfaceLotteryCi- Returns:
- the associated category id
-
getBonusInfo
Returns the associated bonus info- Specified by:
getBonusInfoin interfaceLotteryCi- Returns:
- the associated bonus info
-
getDrawInfo
Returns the associated draw info- Specified by:
getDrawInfoin interfaceLotteryCi- Returns:
- the associated draw info
-
getScheduledDraws
Returns the lottery draws schedule- Specified by:
getScheduledDrawsin interfaceLotteryCi- Returns:
- the lottery draw schedule
-
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;
-
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
-
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
-