Exemplo n.º 1
0
        public PlayerStatsViewModel Submit(DateTime queryDate, string playerSlug)
        {
            var statsRequest = new PlayerStatsRequest();
            var result       = statsRequest.Submit(queryDate, playerSlug);

            return(result);
        }
Exemplo n.º 2
0
        private decimal GetBattingAverage(string batterSlug)
        {
            var result = PlayerStatsRequest.Submit(
                queryDate: GameDate.AddDays(1),  // SC0779
                playerSlug: batterSlug);

            return(result.BattingAverage);
        }
 public ProbablePitcherRequest(
     IRosterMaster rosterMaster,
     bool homeOnly = false)
 {
     PlayerStatsRequest = new PlayerStatsRequest();
     HomeOnly           = homeOnly;
     _rosterMaster      = rosterMaster;
 }
        private decimal GetOpponentsBattingAverage(string pitcherSlug)
        {
            var result = PlayerStatsRequest.Submit(
                queryDate: GameDate.AddDays(-1),
                playerSlug: pitcherSlug);

            return(result.OpponentsBattingAverage);
        }
Exemplo n.º 5
0
 public LineupRequest()
 {
     PlayerStatsRequest = new PlayerStatsRequest();
 }