Class MarketWithProbabilitiesImpl

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.oddsentities.markets.MarketWithProbabilitiesImpl
All Implemented Interfaces:
Market, MarketWithProbabilities

public class MarketWithProbabilitiesImpl extends Object implements MarketWithProbabilities
Created on 16/10/2017. // TODO @eti: Javadoc
  • Method Details

    • getStatus

      public MarketStatus getStatus()
      Are odds for this market active
      Specified by:
      getStatus in interface MarketWithProbabilities
      Returns:
      true if odds for this market are active
    • getOutcomeProbabilities

      public List<OutcomeProbabilities> getOutcomeProbabilities()
      Returns a list of probabilities for the different available market outcomes
      Specified by:
      getOutcomeProbabilities in interface MarketWithProbabilities
      Returns:
      a list of probabilities for the different outcomes for this market
    • getCashOutStatus

      public CashOutStatus getCashOutStatus()
      Returns a CashOutStatus enum which indicates the availability of cashout
      Specified by:
      getCashOutStatus in interface MarketWithProbabilities
      Returns:
      if available, a CashOutStatus enum which indicates the availability of cashout; otherwise null
    • getMarketMetadata

      public MarketMetadata getMarketMetadata()
      Returns a MarketMetadata which contains additional market information
      Specified by:
      getMarketMetadata in interface MarketWithProbabilities
      Returns:
      a MarketMetadata which contains additional market information
    • getId

      public int getId()
      Specified by:
      getId in interface Market
      Returns:
      the id of the market
    • getSpecifiers

      public Map<String,String> getSpecifiers()
      Returns the Map of specifiers for this market (can be empty)
      Specified by:
      getSpecifiers in interface Market
      Returns:
      the specifiers for this market (can be empty)
    • getName

      public String getName()
      Specified by:
      getName in interface Market
      Returns:
      the name of the market (specifier placeholders are replaced with actual values)
    • getName

      public String getName(Locale locale)
      Specified by:
      getName in interface Market
      Parameters:
      locale - the Locale in which the name should be returned
      Returns:
      - the name of the market translated in the specified Locale (specifier placeholders are replaced with actual values)
    • getMarketDefinition

      public MarketDefinition getMarketDefinition()
      Specified by:
      getMarketDefinition in interface Market
      Returns:
      the associated market definition
    • getAdditionalMarketInfo

      public Map<String,String> getAdditionalMarketInfo()
      Returns additional market information(extended market specifiers) - can be empty
      Specified by:
      getAdditionalMarketInfo in interface Market
      Returns:
      additional market information(extended market specifiers)
    • getNames

      public Map<Locale,String> getNames(List<Locale> locales)
      Specified by:
      getNames in interface Market
      Parameters:
      locales - the list of Locale in which the name should be returned
      Returns:
      - the names of the market translated in the specified Locale (specifier placeholders are replaced with actual values)