Class MarketDescriptionImpl

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.markets.MarketDescriptionImpl
All Implemented Interfaces:
MarketDescription

public class MarketDescriptionImpl extends Object implements MarketDescription
Created on 14/06/2017. // TODO @eti: Javadoc
  • Constructor Details

  • Method Details

    • getId

      public int getId()
      Description copied from interface: MarketDescription
      Returns the market identifier
      Specified by:
      getId in interface MarketDescription
      Returns:
      the market identifier
    • getName

      public String getName(Locale locale)
      Description copied from interface: MarketDescription
      Returns the market name translated in the provided Locale
      Specified by:
      getName in interface MarketDescription
      Parameters:
      locale - the Locale in which the market name should be returned
      Returns:
      the market name translated in the provided Locale
    • getDescription

      public String getDescription(Locale locale)
      Description copied from interface: MarketDescription
      Returns the market description translated in the provided Locale
      Specified by:
      getDescription in interface MarketDescription
      Parameters:
      locale - the Locale in which the market description should be returned
      Returns:
      the market description translated in the provided Locale
    • getOutcomes

      public List<OutcomeDescription> getOutcomes()
      Description copied from interface: MarketDescription
      Returns a 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)
      Specified by:
      getOutcomes in interface MarketDescription
      Returns:
      a List of possible outcomes on this market
    • getSpecifiers

      public List<Specifier> getSpecifiers()
      Description copied from interface: MarketDescription
      Returns a List of specifiers which are valid for the related market
      Specified by:
      getSpecifiers in interface MarketDescription
      Returns:
      a List of specifiers which are valid for the related market
    • getMappings

      public List<MarketMappingData> getMappings()
      Description copied from interface: MarketDescription
      Returns a List of mappings that are available for the related market
      Specified by:
      getMappings in interface MarketDescription
      Returns:
      a List of mappings that are available for the related market
    • getAttributes

      public List<MarketAttribute> getAttributes()
      Description copied from interface: MarketDescription
      Returns a List of additional market attributes. Market attributes are used to identify special markets, ex. flex market
      Specified by:
      getAttributes in interface MarketDescription
      Returns:
      a List of additional market attributes
    • getGroups

      public List<String> getGroups()
      Description copied from interface: MarketDescription
      Returns a 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 valid
      Specified by:
      getGroups in interface MarketDescription
      Returns:
      a List of groups to which the market belongs to
    • getOutcomeType

      public String getOutcomeType()
      Description copied from interface: MarketDescription
      Returns the market attribute "outcome_type"
      Specified by:
      getOutcomeType in interface MarketDescription
      Returns:
      the market attribute "outcome_type"
    • getLocales

      public Collection<Locale> getLocales()
      Description copied from interface: MarketDescription
      Returns a list of Locale cached in this instance
      Specified by:
      getLocales in interface MarketDescription
      Returns:
      a list of Locale
    • mergeOutcomes

      public void mergeOutcomes(List<MarketOutcomeCi> outcomeCis, List<Locale> locales)
    • getStaticMappingsData

      public List<MarketMappingCi> getStaticMappingsData()
    • setStaticMappingsData

      public void setStaticMappingsData(List<MarketMappingCi> staticMappingsData)
    • getSourceCache

      public String getSourceCache()
    • getLastDataReceived

      public Date getLastDataReceived()
    • setFetchInfo

      public void setFetchInfo(String sourceCache, Date lastDataReceived)
    • canBeFetched

      public boolean canBeFetched()