Table of Contents

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

string

MarketSubTypeId

Gets the market sub type identifier

int? MarketSubTypeId { get; }

Property Value

int?

MarketTypeId

Gets the market type identifier

int MarketTypeId { get; }

Property Value

int

OutcomeMappings

Gets the outcome mappings

IEnumerable<IOutcomeMappingData> OutcomeMappings { get; }

Property Value

IEnumerable<IOutcomeMappingData>

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

string

SportId

Gets the id of the sport to which the associated market / outright belongs to

Urn SportId { get; }

Property Value

Urn

ValidFor

Gets the valid_for value

string ValidFor { get; }

Property Value

string

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

producerId int

The id of the IProducer associated with the market

sportId Urn

The Urn specifying the sport associated with the market

specifiers IReadOnlyDictionary<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