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()
MarketDescription
getId
in interface MarketDescription
public String getName(Locale locale)
MarketDescription
Locale
getName
in interface MarketDescription
locale
- the Locale
in which the market name should be returnedLocale
public String getDescription(Locale locale)
MarketDescription
Locale
getDescription
in interface MarketDescription
locale
- the Locale
in which the market description should be returnedLocale
public List<OutcomeDescription> getOutcomes()
MarketDescription
List
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 MarketDescription
List
of possible outcomes on this marketpublic List<Specifier> getSpecifiers()
MarketDescription
List
of specifiers which are valid for the related marketgetSpecifiers
in interface MarketDescription
List
of specifiers which are valid for the related marketpublic List<MarketMappingData> getMappings()
MarketDescription
List
of mappings that are available for the related marketgetMappings
in interface MarketDescription
List
of mappings that are available for the related marketpublic List<MarketAttribute> getAttributes()
MarketDescription
List
of additional market attributes. Market attributes are used to identify
special markets, ex. flex marketgetAttributes
in interface MarketDescription
List
of additional market attributespublic List<String> getGroups()
MarketDescription
List
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 MarketDescription
List
of groups to which the market belongs topublic String getOutcomeType()
MarketDescription
getOutcomeType
in interface MarketDescription
public Collection<Locale> getLocales()
MarketDescription
Locale
cached in this instancegetLocales
in interface MarketDescription
Locale
public 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.