Table of Contents

Interface IMarketDescriptionManager

Namespace
Sportradar.OddsFeed.SDK.Api.Managers
Assembly
Sportradar.OddsFeed.SDK.dll

Used to obtain information about available markets and get translations for markets and outcomes including outrights

public interface IMarketDescriptionManager

Methods

DeleteVariantMarketDescriptionFromCache(int, string)

Deletes the variant market description from cache

void DeleteVariantMarketDescriptionFromCache(int marketId, string variantValue)

Parameters

marketId int

The market identifier

variantValue string

The variant value

GetMarketDescriptionsAsync(CultureInfo)

Asynchronously gets a IEnumerable<T> of all available static market descriptions

Task<IEnumerable<IMarketDescription>> GetMarketDescriptionsAsync(CultureInfo culture = null)

Parameters

culture CultureInfo

The language for which to get market descriptions

Returns

Task<IEnumerable<IMarketDescription>>

A IEnumerable<T> of available static market descriptions

GetMarketMappingAsync(int, IProducer)

Asynchronously gets a IEnumerable<T> of available mappings for the provided marketId/producer combination

Task<IEnumerable<IMarketMappingData>> GetMarketMappingAsync(int marketId, IProducer producer)

Parameters

marketId int

The id of the market for which you need the mapping

producer IProducer

The IProducer for which you need the mapping

Returns

Task<IEnumerable<IMarketMappingData>>

A IEnumerable<T> of available mappings for the provided marketId/producer combination

GetMarketMappingAsync(int, IReadOnlyDictionary<string, string>, IProducer)

Asynchronously gets a IEnumerable<T> of available mappings for the provided marketId/producer combination

Task<IEnumerable<IMarketMappingData>> GetMarketMappingAsync(int marketId, IReadOnlyDictionary<string, string> specifiers, IProducer producer)

Parameters

marketId int

The id of the market for which you need the mapping

specifiers IReadOnlyDictionary<string, string>

The associated market specifiers

producer IProducer

The IProducer for which you need the mapping

Returns

Task<IEnumerable<IMarketMappingData>>

A IEnumerable<T> of available mappings for the provided marketId/producer combination

LoadMarketDescriptionsAsync()

Asynchronously loads the invariant and variant list of market descriptions from the Sports API

Task<bool> LoadMarketDescriptionsAsync()

Returns

Task<bool>

Returns true if the action succeeded

Remarks

To be used when manually changed market data via betradar control