Class MarketDescriptionImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.markets.MarketDescriptionImpl
- All Implemented Interfaces:
MarketDescription
Created on 14/06/2017.
// TODO @eti: Javadoc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns aListof additional market attributes.getDescription(Locale locale) Returns the market description translated in the providedLocaleReturns aListof groups to which the market belongs to.intgetId()Returns the market identifierReturns a list ofLocalecached in this instanceReturns aListof mappings that are available for the related marketReturns the market name translated in the providedLocaleReturns aListof possible outcomes on the related market market.Returns the market attribute "outcome_type"Returns aListof specifiers which are valid for the related marketvoidmergeOutcomes(List<MarketOutcomeCi> outcomeCis, List<Locale> locales) voidsetFetchInfo(String sourceCache, Date lastDataReceived) voidsetStaticMappingsData(List<MarketMappingCi> staticMappingsData)
-
Constructor Details
-
MarketDescriptionImpl
-
-
Method Details
-
getId
public int getId()Description copied from interface:MarketDescriptionReturns the market identifier- Specified by:
getIdin interfaceMarketDescription- Returns:
- the market identifier
-
getName
Description copied from interface:MarketDescriptionReturns the market name translated in the providedLocale- Specified by:
getNamein interfaceMarketDescription- Parameters:
locale- theLocalein which the market name should be returned- Returns:
- the market name translated in the provided
Locale
-
getDescription
Description copied from interface:MarketDescriptionReturns the market description translated in the providedLocale- Specified by:
getDescriptionin interfaceMarketDescription- Parameters:
locale- theLocalein which the market description should be returned- Returns:
- the market description translated in the provided
Locale
-
getOutcomes
Description copied from interface:MarketDescriptionReturns aListof 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)- Specified by:
getOutcomesin interfaceMarketDescription- Returns:
- a
Listof possible outcomes on this market
-
getSpecifiers
Description copied from interface:MarketDescriptionReturns aListof specifiers which are valid for the related market- Specified by:
getSpecifiersin interfaceMarketDescription- Returns:
- a
Listof specifiers which are valid for the related market
-
getMappings
Description copied from interface:MarketDescriptionReturns aListof mappings that are available for the related market- Specified by:
getMappingsin interfaceMarketDescription- Returns:
- a
Listof mappings that are available for the related market
-
getAttributes
Description copied from interface:MarketDescriptionReturns aListof additional market attributes. Market attributes are used to identify special markets, ex. flex market- Specified by:
getAttributesin interfaceMarketDescription- Returns:
- a
Listof additional market attributes
-
getGroups
Description copied from interface:MarketDescriptionReturns aListof 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 valid- Specified by:
getGroupsin interfaceMarketDescription- Returns:
- a
Listof groups to which the market belongs to
-
getOutcomeType
Description copied from interface:MarketDescriptionReturns the market attribute "outcome_type"- Specified by:
getOutcomeTypein interfaceMarketDescription- Returns:
- the market attribute "outcome_type"
-
getLocales
Description copied from interface:MarketDescriptionReturns a list ofLocalecached in this instance- Specified by:
getLocalesin interfaceMarketDescription- Returns:
- a list of
Locale
-
mergeOutcomes
-
getStaticMappingsData
-
setStaticMappingsData
-
getSourceCache
-
getLastDataReceived
-
setFetchInfo
-
canBeFetched
public boolean canBeFetched()
-