Interface IMarketMappingData
- Namespace
- Sportradar.OddsFeed.SDK.Entities.Rest.MarketMapping
- Assembly
- Sportradar.OddsFeed.SDK.dll
Represents mapping information used to map markets and outright to the sport / producer to which they belong
public interface IMarketMappingData
Properties
MarketId
Gets the id of the market associated with the current instance
string MarketId { get; }
Property Value
MarketSubTypeId
Gets the market sub type identifier
int? MarketSubTypeId { get; }
Property Value
- int?
MarketTypeId
Gets the market type identifier
int MarketTypeId { get; }
Property Value
OutcomeMappings
Gets the outcome mappings
IEnumerable<IOutcomeMappingData> OutcomeMappings { get; }
Property Value
ProducerIds
Gets the ids of the producers to which the associated market / outright belongs to
IEnumerable<int> ProducerIds { get; }
Property Value
- IEnumerable<int>
The producer ids
SovTemplate
Gets the special odds value template value
string SovTemplate { get; }
Property Value
SportId
Gets the id of the sport to which the associated market / outright belongs to
Urn SportId { get; }
Property Value
ValidFor
Gets the valid_for value
string ValidFor { get; }
Property Value
Methods
CanMap(int, Urn, IReadOnlyDictionary<string, string>)
Determines whether the current mapping can map market with provided specifiers associated with provided producer and sport
bool CanMap(int producerId, Urn sportId, IReadOnlyDictionary<string, string> specifiers)
Parameters
producerIdintThe id of the IProducer associated with the market
sportIdUrnThe Urn specifying the sport associated with the market
specifiersIReadOnlyDictionary<string, string>The market specifiers
Returns
- bool
True if the current mapping can be used to map the specified market. False otherwise
Exceptions
- InvalidOperationException
The provided specifiers are not valid