Example #1
0
        public StashClient(string baseUrl, string base64Auth = null, bool usePersonalAccessTokenForAuthentication = false)
        {
            var schemeToUse = usePersonalAccessTokenForAuthentication
                        ? Api.Enums.AuthScheme.Bearer
                        : Api.Enums.AuthScheme.Basic;

            _httpWorker = new HttpCommunicationWorker(baseUrl, base64Auth, schemeToUse);
            InjectDependencies();
        }
Example #2
0
 internal Projects(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DivisionTeamStandings"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal DivisionTeamStandings(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #4
0
 internal Projects(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CumulativePlayerStats"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal CumulativePlayerStats(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #6
0
 public StashClient(string baseUrl, string base64Auth = null)
 {
     _httpWorker = new HttpCommunicationWorker(baseUrl, base64Auth);
     InjectDependencies();
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DailyDfs"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal DailyDfs(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #8
0
 internal PullRequests(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DailyPlayerStats"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal DailyPlayerStats(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #10
0
 internal Commits(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LatestUpdates"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal LatestUpdates(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 internal DefaultReviewerConditions(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MySportsFeedsClient"/> class.
 /// </summary>
 /// <param name="league">The league.</param>
 /// <param name="version">The version.</param>
 /// <param name="username">The username.</param>
 /// <param name="password">The password.</param>
 public OldMLBSportsFeedsClient(string apiKey, string password)
 {
     _httpWorker = new HttpCommunicationWorker(this.BASE_URL, apiKey, password);
     InjectDependencies();
 }
 public StashClient(string baseUrl, string base64Auth = null)
 {
     _httpWorker = new HttpCommunicationWorker(baseUrl, base64Auth);
     InjectDependencies();
 }
Example #15
0
 internal Groups(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayerInjuries"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal PlayerInjuries(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MySportsFeedsClient"/> class.
 /// </summary>
 /// <param name="baseUrl">The base URL.</param>
 /// <param name="league">The league.</param>
 /// <param name="version">The version.</param>
 /// <param name="username">The username.</param>
 /// <param name="password">The password.</param>
 public MySportsFeedsClient(string baseUrl, Enums.League league, string version, string username, string password)
 {
     _httpWorker = new HttpCommunicationWorker(baseUrl, version, username, password);
     InjectDependencies(league);
 }
Example #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FullGameSchedule"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal FullGameSchedule(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RosterPlayers"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal RosterPlayers(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConferenceTeamStandings"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal ConferenceTeamStandings(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #21
0
 internal Branches(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #22
0
 public StashClient(string baseUrl, string username, string password)
 {
     _httpWorker = new HttpCommunicationWorker(baseUrl, username, password);
     InjectDependencies();
 }
Example #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameStartingLineup"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal GameStartingLineup(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #24
0
 internal Commits(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #25
0
 internal Permissions(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GamePlayByPlay"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal GamePlayByPlay(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #27
0
 internal PullRequests(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayerGameLogs"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal PlayerGameLogs(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Scoreboard"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal Scoreboard(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 public StashClient(string baseUrl, string username, string password)
 {
     _httpWorker = new HttpCommunicationWorker(baseUrl, username, password);
     InjectDependencies();
 }
Example #31
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamGameLogs"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal TeamGameLogs(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #32
0
 internal Users(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 internal RepoPermissions(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayoffTeamStandings"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal PlayoffTeamStandings(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #35
0
 internal Branches(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #36
0
 internal Repositories(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #37
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameBoxScore"/> class.
 /// </summary>
 /// <param name="httpWorker">The HTTP worker.</param>
 internal GameBoxScore(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #38
0
 internal Repositories(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }
Example #39
0
 internal Groups(HttpCommunicationWorker httpWorker)
 {
     _httpWorker = httpWorker;
 }