-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from Afischbacher/develop
v3.2.0
- Loading branch information
Showing
40 changed files
with
7,100 additions
and
3,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
mode: Mainline | ||
tag-prefix: '[v]' | ||
branches: | ||
master: | ||
mode: ContinuousDelivery | ||
regex: ^master$ | ||
increment: Minor | ||
tag-number-pattern: '[v]?(\d+\.\d+\.\d+)(?:[-.\+a-zA-Z\d]+)?' | ||
is-release-branch: true | ||
commit-message-incrementing: Enabled | ||
tag: '' | ||
prevent-increment-of-merged-branch-version: false | ||
prevent-increment-of-merged-branch-version-message: '' | ||
ignore: | ||
sha: [] | ||
merge-message-formats: {} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
namespace Nhl.Api.Common.Helpers; | ||
|
||
/// <summary> | ||
/// A helper class for all NHL team names | ||
/// </summary> | ||
public static class TeamNames | ||
{ | ||
/// <summary> | ||
/// Anaheim Ducks | ||
/// </summary> | ||
public const string AnaheimDucks = "Anaheim Ducks"; | ||
|
||
/// <summary> | ||
/// Arizona Coyotes | ||
/// </summary> | ||
public const string ArizonaCoyotes = "Arizona Coyotes"; | ||
|
||
/// <summary> | ||
/// Boston Bruins | ||
/// </summary> | ||
public const string BostonBruins = "Boston Bruins"; | ||
|
||
/// <summary> | ||
/// Buffalo Sabres | ||
/// </summary> | ||
public const string BuffaloSabres = "Buffalo Sabres"; | ||
|
||
/// <summary> | ||
/// Calgary Flames | ||
/// </summary> | ||
public const string CalgaryFlames = "Calgary Flames"; | ||
|
||
/// <summary> | ||
/// Carolina Hurricanes | ||
/// </summary> | ||
public const string CarolinaHurricanes = "Carolina Hurricanes"; | ||
|
||
/// <summary> | ||
/// Chicago Blackhawks | ||
/// </summary> | ||
public const string ChicagoBlackhawks = "Chicago Blackhawks"; | ||
|
||
/// <summary> | ||
/// Colorado Avalanche | ||
/// </summary> | ||
public const string ColoradoAvalanche = "Colorado Avalanche"; | ||
|
||
/// <summary> | ||
/// Columbus Blue Jackets | ||
/// </summary> | ||
public const string ColumbusBlueJackets = "Columbus Blue Jackets"; | ||
|
||
/// <summary> | ||
/// Dallas Stars | ||
/// </summary> | ||
public const string DallasStars = "Dallas Stars"; | ||
|
||
/// <summary> | ||
/// Detroit Red Wings | ||
/// </summary> | ||
public const string DetroitRedWings = "Detroit Red Wings"; | ||
|
||
/// <summary> | ||
/// Edmonton Oilers | ||
/// </summary> | ||
public const string EdmontonOilers = "Edmonton Oilers"; | ||
|
||
/// <summary> | ||
/// Florida Panthers | ||
/// </summary> | ||
public const string FloridaPanthers = "Florida Panthers"; | ||
|
||
/// <summary> | ||
/// Los Angeles Kings | ||
/// </summary> | ||
public const string LosAngelesKings = "Los Angeles Kings"; | ||
|
||
/// <summary> | ||
/// Minnesota Wild | ||
/// </summary> | ||
public const string MinnesotaWild = "Minnesota Wild"; | ||
|
||
/// <summary> | ||
/// Montreal Canadiens | ||
/// </summary> | ||
public const string MontrealCanadiens = "Montreal Canadiens"; | ||
|
||
/// <summary> | ||
/// Nashville Predators | ||
/// </summary> | ||
public const string NashvillePredators = "Nashville Predators"; | ||
|
||
/// <summary> | ||
/// New Jersey Devils | ||
/// </summary> | ||
public const string NewJerseyDevils = "New Jersey Devils"; | ||
|
||
/// <summary> | ||
/// New York Islanders | ||
/// </summary> | ||
public const string NewYorkIslanders = "New York Islanders"; | ||
|
||
/// <summary> | ||
/// New York Rangers | ||
/// </summary> | ||
public const string NewYorkRangers = "New York Rangers"; | ||
|
||
/// <summary> | ||
/// Ottawa Senators | ||
/// </summary> | ||
public const string OttawaSenators = "Ottawa Senators"; | ||
|
||
/// <summary> | ||
/// Philadelphia Flyers | ||
/// </summary> | ||
public const string PhiladelphiaFlyers = "Philadelphia Flyers"; | ||
|
||
/// <summary> | ||
/// Pittsburgh Penguins | ||
/// </summary> | ||
public const string PittsburghPenguins = "Pittsburgh Penguins"; | ||
|
||
/// <summary> | ||
/// San Jose Sharks | ||
/// </summary> | ||
public const string SanJoseSharks = "San Jose Sharks"; | ||
|
||
/// <summary> | ||
/// Seattle Kraken | ||
/// </summary> | ||
public const string SeattleKraken = "Seattle Kraken"; | ||
|
||
/// <summary> | ||
/// St. Louis Blues | ||
/// </summary> | ||
public const string StLouisBlues = "St. Louis Blues"; | ||
|
||
/// <summary> | ||
/// Tampa Bay Lightning | ||
/// </summary> | ||
public const string TampaBayLightning = "Tampa Bay Lightning"; | ||
|
||
/// <summary> | ||
/// Toronto Maple Leafs | ||
/// </summary> | ||
public const string TorontoMapleLeafs = "Toronto Maple Leafs"; | ||
|
||
/// <summary> | ||
/// Vancouver Canucks | ||
/// </summary> | ||
public const string VancouverCanucks = "Vancouver Canucks"; | ||
|
||
/// <summary> | ||
/// Vegas Golden Knights | ||
/// </summary> | ||
public const string VegasGoldenKnights = "Vegas Golden Knights"; | ||
|
||
/// <summary> | ||
/// Washington Capitals | ||
/// </summary> | ||
public const string WashingtonCapitals = "Washington Capitals"; | ||
|
||
/// <summary> | ||
/// Winnipeg Jets | ||
/// </summary> | ||
public const string WinnipegJets = "Winnipeg Jets"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System; | ||
using System.Net.Http; | ||
|
||
namespace Nhl.Api.Common.Http; | ||
|
||
/// <summary> | ||
/// The NHL endpoint for HTML reports | ||
/// </summary> | ||
public class NhlScoresHtmlReportsApiHttpClient : NhlApiHttpClient | ||
{ | ||
private static readonly object _lock = new object(); | ||
private static HttpClient _httpClient; | ||
|
||
/// <summary> | ||
/// The NHL endpoint for HTML reports | ||
/// </summary> | ||
public const string ClientApiUrl = "https://www.nhl.com/scores/htmlreports/"; | ||
|
||
|
||
/// <summary> | ||
/// The dedicated NHL endpoint for HTML reports | ||
/// </summary> | ||
public NhlScoresHtmlReportsApiHttpClient() : base(clientApiUri: ClientApiUrl, clientVersion: string.Empty, timeoutInSeconds: 30) | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// The HTTP Client dedicated NHL endpoint for HTML reports | ||
/// </summary> | ||
public override HttpClient HttpClient | ||
{ | ||
get | ||
{ | ||
lock (_lock) | ||
{ | ||
_httpClient ??= new HttpClient() | ||
{ | ||
BaseAddress = new Uri($"{Client}{ClientVersion}"), | ||
Timeout = Timeout | ||
}; | ||
|
||
return _httpClient; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.