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
GetMarketDescriptionsAsync(CultureInfo)
Asynchronously gets a IEnumerable<T> of all available static market descriptions
Task<IEnumerable<IMarketDescription>> GetMarketDescriptionsAsync(CultureInfo culture = null)
Parameters
cultureCultureInfoThe 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
marketIdintThe id of the market for which you need the mapping
producerIProducerThe 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
marketIdintThe id of the market for which you need the mapping
specifiersIReadOnlyDictionary<string, string>The associated market specifiers
producerIProducerThe 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
Remarks
To be used when manually changed market data via betradar control