private void LoadModelDataInMlf() { Dictionary <string, double> marketOddsDictionary = _datastore.GetMarketOdds(GameId); if (marketOddsDictionary.Count > 0) { ModelData[MlbModelDataKeys.InMlf] = marketOddsDictionary; } else { Dictionary <string, double> dictionary = ModelData[MlbModelDataKeys.InMlf]; InitializeOdds(dictionary); } }
private void LoadTeamModelData() { MarketOddsDictionary = _datastore.GetMarketOdds(GameId); /* SIMULATION ODDS * {"CG,TO,T":0,"CG,TO,S1":0,"CG,TO,S2":0,"CG,SP,T":0,"CG,SP,S1":0,"CG,SP,S2":0,"CG,ML,T":0.0,"CG,ML,S1":0,"CG,ML,S2":0 */ if (IsSimulation && MarketOddsDictionary.Count == 0) { MarketOddsDictionary["CG,TO,T"] = 45.5; MarketOddsDictionary["CG,TO,S1"] = 1.91; MarketOddsDictionary["CG,TO,S2"] = 1.91; MarketOddsDictionary["CG,SP,T"] = 7; MarketOddsDictionary["CG,SP,S1"] = 1.89; MarketOddsDictionary["CG,SP,S2"] = 2.02; MarketOddsDictionary["CG,ML,T"] = 0; MarketOddsDictionary["CG,ML,S1"] = 3.45; MarketOddsDictionary["CG,ML,S2"] = 1.33; } /* END SIMULATION ODDS*/ LoadModelDataInMlf(MarketOddsDictionary); ModelData[NflModelDataKeys.InTsf] = GetInTsf(); ModelData[NflModelDataKeys.InSc] = GetInSc(); ModelData[NflModelDataKeys.Xs] = GetXs(); //new bool isGameStarted = StartDateTime < DateTime.UtcNow; if (isGameStarted) { LoadCurrentScore(); } }
private void LoadPlayerModelData() { GameInfo = _radarNcaafb.GetGameInfo(GameId); //LoadModelDataForPlayers(); MarketOddsDictionary = _datastore.GetMarketOdds(GameId); LoadModelDataInMlf(MarketOddsDictionary); LoadModelDataEvs(); //ModelData[NcaafbModelDataKeys.InTsf] = GetModelDataInTsf(); bool isGameStarted = StartDateTime < DateTime.UtcNow; if (isGameStarted) { LoadCurrentScore(); } }
private void LoadModelDataInMlf() { //initalize the live odds object Dictionary <string, double> dictionaryLive = ModelData[NcaabbModelDataKeys.InLMlf]; InitializeOdds(dictionaryLive); Dictionary <string, double> marketOddsDictionary = _datastore.GetMarketOdds(GameId); if (marketOddsDictionary.Count > 0) { ModelData[NcaabbModelDataKeys.InMlf] = marketOddsDictionary; } else { Dictionary <string, double> dictionary = ModelData[NcaabbModelDataKeys.InMlf]; InitializeOdds(dictionary); } }