public class DrawCiImpl extends Object implements DrawCi, ExportableCacheItem
| Modifier and Type | Method and Description |
|---|---|
ExportableCi |
export()
Export item's properties
|
Integer |
getDisplayId()
Returns the display id
|
Urn |
getId()
Returns the
Urn representing id of the related entity |
Urn |
getLotteryId()
Returns the associated lottery id
|
Map<Locale,String> |
getNames(List<Locale> locales)
Returns the
Map containing translated names of the item |
Urn |
getReplacedBy()
Returns the
Urn specifying the replacement sport event for the current instance |
List<DrawResultCi> |
getResults(List<Locale> locales)
Returns a list of draw results
|
Date |
getScheduled()
Returns the
Date specifying when the sport event associated with the current
instance was scheduled |
Date |
getScheduledEnd()
Returns the
Date specifying when the sport event associated with the current
instance was scheduled to end |
Date |
getScheduledEndRaw()
Returns the
Date specifying when the sport event associated with the current
instance was scheduled to end (no api request is invoked) |
Date |
getScheduledRaw()
Returns the
Date specifying when the sport event associated with the current
instance was scheduled (no api request is invoked) |
DrawStatus |
getStatus()
Returns the status of the draw
|
boolean |
hasTranslationsLoadedFor(List<Locale> localeList)
Determines whether the current instance has translations for the specified languages
|
Optional<Boolean> |
isStartTimeTbd()
Returns the
Boolean specifying if the start time to be determined is set for the current instance |
<T> void |
merge(T endpointData,
Locale dataLocale)
Merges the new provided data into the cache item
|
public Date getScheduled()
Date specifying when the sport event associated with the current
instance was scheduledgetScheduled in interface SportEventCiDate specifying when the sport event associated with the current
instance was scheduled; otherwise null;public DrawStatus getStatus()
public List<DrawResultCi> getResults(List<Locale> locales)
getResults in interface DrawCilocales - a List specifying the required languagespublic Urn getLotteryId()
getLotteryId in interface DrawCipublic Integer getDisplayId()
getDisplayId in interface DrawCipublic Date getScheduledEnd()
Date specifying when the sport event associated with the current
instance was scheduled to endgetScheduledEnd in interface SportEventCiDate specifying when the sport event associated with the current
instance was scheduled to end; otherwise null;public Date getScheduledRaw()
Date specifying when the sport event associated with the current
instance was scheduled (no api request is invoked)getScheduledRaw in interface SportEventCiDate specifying when the sport event associated with the current
instance was scheduled; otherwise null;public Date getScheduledEndRaw()
Date specifying when the sport event associated with the current
instance was scheduled to end (no api request is invoked)getScheduledEndRaw in interface SportEventCiDate specifying when the sport event associated with the current
instance was scheduled to end; otherwise null;public Optional<Boolean> isStartTimeTbd()
Boolean specifying if the start time to be determined is set for the current instanceisStartTimeTbd in interface SportEventCiBoolean specifying if the start time to be determined is set for the current instancepublic Urn getReplacedBy()
Urn specifying the replacement sport event for the current instancegetReplacedBy in interface SportEventCiUrn specifying the replacement sport event for the current instancepublic Map<Locale,String> getNames(List<Locale> locales)
Map containing translated names of the itempublic boolean hasTranslationsLoadedFor(List<Locale> localeList)
hasTranslationsLoadedFor in interface CacheItemlocaleList - a List specifying the required languagestrue if the current instance contains data in the required locals, otherwise false.public <T> void merge(T endpointData,
Locale dataLocale)
public ExportableCi export()
ExportableCacheItemexport in interface ExportableCacheItemExportableCi instance containing all relevant propertiesCopyright © 2016–2025. All rights reserved.