Interface MarketMappingData

All Known Implementing Classes:
MarketMappingDataImpl

public interface MarketMappingData
Defines methods used to access market mapping data provided by the API
  • Method Details

    • getProducerIds

      Set<Integer> getProducerIds()
      The associated producer ids
      Returns:
      the producer ids for which the mappings are valid
    • getSportId

      Urn getSportId()
      The sport id for which the mapping data is valid
      Returns:
      the sport id for which the mapping data is valid
    • getMarketId

      String getMarketId()
      Returns the market id
      Returns:
      the market id
    • getMarketTypeId

      int getMarketTypeId()
      Returns the market type id
      Returns:
      the market type id
    • getMarketSubTypeId

      Integer getMarketSubTypeId()
      Returns the market sub type id
      Returns:
      the market sub type id
    • getSovTemplate

      String getSovTemplate()
      Returns the "special odds value"
      Returns:
      the "special odds value"
    • getOutcomeMappings

      Map<String,OutcomeMappingData> getOutcomeMappings()
      Returns a Map of valid outcome mappings for this MarketMappingData
      Returns:
      a Map of valid outcome mappings
    • getValidFor

      String getValidFor()
      Returns a String describing for which specifier values the mapping is valid
      Returns:
      a String describing for which specifier values the mapping is valid
    • canMap

      boolean canMap(int producerId, Urn sportId, Map<String,String> specifiers)
      Indicates if the mapping data is usable with the provided values
      Parameters:
      producerId - a valid producerId
      sportId - a valid Urn sport identifier
      specifiers - a Map of feed message specifiers
      Returns:
      true if the mapping data is valid for the provided values; otherwise false