sportradar / UnifiedOddsSdkNetCore

UnifiedFeed SDK is a client library that enables easier integration with the Betradar XML feeds. SDK exposes XML feed service interface in a more user-friendly way and isolates the client from having to do XML feed parsing, proper connection handling, error recovery, event queuing, data caching and dispatching.
https://sportradar.github.io/UnifiedOddsSdkNetCore/
Other
17 stars 14 forks source link

Get competitor.id from IOutcomeOdds? #14

Closed mijkathegreat closed 2 years ago

mijkathegreat commented 3 years ago

Hello! We're trying to find a way to get Competitor.Id from OutcomeOdds (for 'tournament winner' market), but didn't find it without reflection (with reflection we can get NameProvider and get _profileCache from it). We cannot use Outcome.Name as team/competitor id because it's unreliable way for sure (we want to make some matching from OutcomeOdds to Competitor object).

Could u please suggest some good way to do this?

dhrovat commented 2 years ago

Hi, I am not sure I understand what you want, but each market/outcome is linked to event received in the feed message. On the event there is an method to get competitors. The other way to receive competitor data is via ISportDataProvider.GetCompetitorAsync(...)

dhrovat commented 2 years ago

No feedback in 3 weeks.