コード例 #1
0
 public FanGraphsHitterController(Helpers helpers, GoogleSheetsConnector googleSheetsConnector, FanGraphsUriEndPoints fanGraphsEndPoints, ProjectDirectoryEndPoints projectEndPoints)
 {
     _helpers = helpers;
     _googleSheetsConnector = googleSheetsConnector;
     _fanGraphsEndPoints    = fanGraphsEndPoints;
     _projectEndPoints      = projectEndPoints;
 }
コード例 #2
0
 public PlayerBaseController(Helpers helpers, BaseballScraperContext context, CsvHandler csvHandler, GoogleSheetsConnector googleSheetsConnector, ProjectDirectoryEndPoints baseballData)
 {
     _helpers               = helpers;
     _context               = context;
     _csvHandler            = csvHandler;
     _googleSheetsConnector = googleSheetsConnector;
     _baseballData          = baseballData;
 }
コード例 #3
0
 public FanGraphsSpController(Helpers helpers, FanGraphsUriEndPoints endPoints, GoogleSheetsConnector googleSheetsConnector, CsvHandler csvHandler, BaseballScraperContext context, ProjectDirectoryEndPoints projectDirectory)
 {
     _helpers               = helpers;
     _endPoints             = endPoints;
     _googleSheetsConnector = googleSheetsConnector;
     _csvHandler            = csvHandler;
     _context               = context;
     _projectDirectory      = projectDirectory;
 }
コード例 #4
0
        public HomeController(Helpers helpers, RdotNetConnector r, IOptions <AirtableConfiguration> airtableConfig, IOptions <TwitterConfiguration> twitterConfig, GoogleSheetsConnector gSC, EmailHelper emailHelper, ExcelHandler excelHandler, PythonConnector pythonConnector, DataTabler dataTabler, CsvHandler csvHandler, CbsTransactionTrendsController cbsTrendsController)
        {
            _helpers              = helpers;
            _r                    = r;
            _airtableConfig       = airtableConfig.Value;
            _twitterConfiguration = twitterConfig.Value;
            _gSC                  = gSC;
            _emailHelper          = emailHelper;
            _excelHander          = excelHandler;
            _pythonConnector      = pythonConnector;
            _dataTabler           = dataTabler;
            _csvHandler           = csvHandler;
            _cbsTrendsController  = cbsTrendsController;

            // this._cbsTrendsController = cbsTrendsController;
        }
コード例 #5
0
        public LaunchCoreSpSitesController
        (
            Helpers helpers,
            AirtableManager atM,
            PlayerBaseController playerBaseController,
            IOptions <AirtableConfiguration> airtableConfig,
            PostmanMethods postmanMethods,
            GoogleSheetsConnector googleSheetsConnector,
            IOptionsSnapshot <GoogleSheetConfiguration> options,
            IOptionsSnapshot <AirtableConfiguration> airTableOptions
        )
        {
            if (airtableConfig is null)
            {
                throw new ArgumentNullException(nameof(airtableConfig));
            }

            if (options is null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            if (airTableOptions is null)
            {
                throw new ArgumentNullException(nameof(airTableOptions));
            }


            _helpers = helpers ?? throw new ArgumentNullException(nameof(helpers));
            _atM     = atM ?? throw new ArgumentNullException(nameof(atM));
            _playerBaseController  = playerBaseController ?? throw new ArgumentNullException(nameof(playerBaseController));
            _airtableConfig        = airtableConfig.Value;
            _postmanMethods        = postmanMethods ?? throw new ArgumentNullException(nameof(postmanMethods));
            _googleSheetsConnector = googleSheetsConnector ?? throw new ArgumentNullException(nameof(googleSheetsConnector));
            _crunchTimePlayerIdMapConfiguration = options.Get("CrunchtimePlayerIdMap");
            _sfbbPlayerIdMapConfiguration       = options.Get("SfbbPlayerIdMap");
            _spRankingsConfiguration            = airTableOptions.Get("SpRankings");
            _authorsConfiguration = airTableOptions.Get("Authors");
        }
コード例 #6
0
 public PlayerBaseFromExcel(Helpers helpers, GoogleSheetsConnector googleSheetsConnector)
 {
     _helpers = helpers;
     _googleSheetsConnector = googleSheetsConnector;
 }
コード例 #7
0
 public YahooTransactionTrendsController(Helpers helpers, GoogleSheetsConnector googleSheetsConnector)
 {
     _helpers = helpers;
     _googleSheetsConnector = googleSheetsConnector;
 }