public ExternalOddMessage(Provider provider, int eventId, MarketKind marketKind, ExternalOutcome[] outcomes)
 {
     Provider   = provider;
     EventId    = eventId;
     MarketKind = marketKind;
     Outcomes   = outcomes;
 }
Beispiel #2
0
        public void AddExternalOdd(Provider provider, MarketKind marketKind, Outcome[] outcomes)
        {
            if (!_odds.TryGetValue(marketKind, out var aggOdd))
            {
                aggOdd = new AggregatedOdd(marketKind);
                _odds.Add(marketKind, aggOdd);
            }

            aggOdd.AddOrUpdateOdd(provider, new ExternalOdd(outcomes));
        }
Beispiel #3
0
 public AggregatedOdd(MarketKind marketKind)
 {
     MarketKind = marketKind;
 }