Interface MarketDescription

All Known Implementing Classes:
MarketDescriptionImpl

public interface MarketDescription
Represents a market description
  • Method Details

    • getId

      int getId()
      Returns the market identifier
      Returns:
      the market identifier
    • getName

      String getName(Locale locale)
      Returns the market name translated in the provided Locale
      Parameters:
      locale - the Locale in which the market name should be returned
      Returns:
      the market name translated in the provided Locale
    • getDescription

      String getDescription(Locale locale)
      Returns the market description translated in the provided Locale
      Parameters:
      locale - the Locale in which the market description should be returned
      Returns:
      the market description translated in the provided Locale
    • getOutcomes

      List<OutcomeDescription> getOutcomes()
      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)
      Returns:
      a List of possible outcomes on this market
    • getSpecifiers

      List<Specifier> getSpecifiers()
      Returns a List of specifiers which are valid for the related market
      Returns:
      a List of specifiers which are valid for the related market
    • getMappings

      List<MarketMappingData> getMappings()
      Returns a List of mappings that are available for the related market
      Returns:
      a List of mappings that are available for the related market
    • getAttributes

      List<MarketAttribute> getAttributes()
      Returns a List of additional market attributes. Market attributes are used to identify special markets, ex. flex market
      Returns:
      a List of additional market attributes
    • getGroups

      List<String> getGroups()
      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
      Returns:
      a List of groups to which the market belongs to
    • getOutcomeType

      default String getOutcomeType()
      Returns the market attribute "outcome_type"
      Returns:
      the market attribute "outcome_type"
    • getLocales

      default Collection<Locale> getLocales()
      Returns a list of Locale cached in this instance
      Returns:
      a list of Locale