Click or drag to resize

IMarketGetMappedMarketIdsAsync Method

Asynchronously gets the mapping Ids of the specified market

Namespace: Sportradar.OddsFeed.SDK.Entities
Assembly: Sportradar.OddsFeed.SDK.Entities (in Sportradar.OddsFeed.SDK.Entities.dll) Version: 1.59.0.0 (1.59.0.0)
Syntax
C#
Task<IEnumerable<IMarketMapping>> GetMappedMarketIdsAsync()

Return Value

TaskIEnumerableIMarketMapping
Returns the mapping Ids of the specified market
Remarks
Example
C#
foreach (var marketMapping in mappedIds)
{
    if (marketMapping is LcooMarketMapping lcooId)
    {
         _log.LogInformation($"Market {market.Id} mapping TypeId:{lcooId.TypeId}, Sov:'{lcooId.Sov}'");
    }
    else if (marketMapping is LoMarketMapping loId)
    {
        _log.LogInformation($"Market {market.Id} mapping TypeId:{loId.TypeId}, SubTypeId:{loId.SubTypeId}, Sov:'{loId.Sov}'");
    }
}
See Also