public class MarketDescriptionImpl extends Object implements MarketDescription
| Constructor and Description |
|---|
MarketDescriptionImpl(MarketDescriptionCi cachedItem,
List<Locale> locales) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeFetched() |
List<MarketAttribute> |
getAttributes()
Returns a
List of additional market attributes. |
String |
getDescription(Locale locale)
Returns the market description translated in the provided
Locale |
List<String> |
getGroups()
Returns a
List of groups to which the market belongs to. |
int |
getId()
Returns the market identifier
|
Date |
getLastDataReceived() |
Collection<Locale> |
getLocales()
Returns a list of
Locale cached in this instance |
List<MarketMappingData> |
getMappings()
Returns a
List of mappings that are available for the related market |
String |
getName(Locale locale)
Returns the market name translated in the provided
Locale |
List<OutcomeDescription> |
getOutcomes()
Returns a
List of possible outcomes on the related market market. |
String |
getOutcomeType()
Returns the market attribute "outcome_type"
|
String |
getSourceCache() |
List<Specifier> |
getSpecifiers()
Returns a
List of specifiers which are valid for the related market |
List<MarketMappingCi> |
getStaticMappingsData() |
void |
mergeOutcomes(List<MarketOutcomeCi> outcomeCis,
List<Locale> locales) |
void |
setFetchInfo(String sourceCache,
Date lastDataReceived) |
void |
setStaticMappingsData(List<MarketMappingCi> staticMappingsData) |
public MarketDescriptionImpl(MarketDescriptionCi cachedItem, List<Locale> locales)
public int getId()
MarketDescriptiongetId in interface MarketDescriptionpublic String getName(Locale locale)
MarketDescriptionLocalegetName in interface MarketDescriptionlocale - the Locale in which the market name should be returnedLocalepublic String getDescription(Locale locale)
MarketDescriptionLocalegetDescription in interface MarketDescriptionlocale - the Locale in which the market description should be returnedLocalepublic List<OutcomeDescription> getOutcomes()
MarketDescriptionList of possible outcomes on the related market market.
For some markets the outcomes are generated only when the market gets linked
with an event (ex. player outcomes for the "first goal scorer" market)getOutcomes in interface MarketDescriptionList of possible outcomes on this marketpublic List<Specifier> getSpecifiers()
MarketDescriptionList of specifiers which are valid for the related marketgetSpecifiers in interface MarketDescriptionList of specifiers which are valid for the related marketpublic List<MarketMappingData> getMappings()
MarketDescriptionList of mappings that are available for the related marketgetMappings in interface MarketDescriptionList of mappings that are available for the related marketpublic List<MarketAttribute> getAttributes()
MarketDescriptionList of additional market attributes. Market attributes are used to identify
special markets, ex. flex marketgetAttributes in interface MarketDescriptionList of additional market attributespublic List<String> getGroups()
MarketDescriptionList of groups to which the market belongs to. Market groups are used to
perform batch market operations, ex. betstop messages may have an indication for which group of markets
the betstop message is validgetGroups in interface MarketDescriptionList of groups to which the market belongs topublic String getOutcomeType()
MarketDescriptiongetOutcomeType in interface MarketDescriptionpublic Collection<Locale> getLocales()
MarketDescriptionLocale cached in this instancegetLocales in interface MarketDescriptionLocalepublic void mergeOutcomes(List<MarketOutcomeCi> outcomeCis, List<Locale> locales)
public List<MarketMappingCi> getStaticMappingsData()
public void setStaticMappingsData(List<MarketMappingCi> staticMappingsData)
public String getSourceCache()
public Date getLastDataReceived()
public boolean canBeFetched()
Copyright © 2016–2025. All rights reserved.