Пример #1
0
        public PlayerStatsViewModel Submit(DateTime queryDate, string playerSlug)
        {
            var statsRequest = new PlayerStatsRequest();
            var result       = statsRequest.Submit(queryDate, playerSlug);

            return(result);
        }
Пример #2
0
        private decimal GetBattingAverage(string batterSlug)
        {
            var result = PlayerStatsRequest.Submit(
                queryDate: GameDate.AddDays(1),  // SC0779
                playerSlug: batterSlug);

            return(result.BattingAverage);
        }
        private decimal GetOpponentsBattingAverage(string pitcherSlug)
        {
            var result = PlayerStatsRequest.Submit(
                queryDate: GameDate.AddDays(-1),
                playerSlug: pitcherSlug);

            return(result.OpponentsBattingAverage);
        }