Beispiel #1
0
 public SeasonLinks(string seasonId, string competitionId, string teamId)
     : base(UriFactory.GetSeasonUri(seasonId))
 {
     LeagueTable = new Link(UriFactory.GetLeagueTableUri(seasonId, competitionId), "League table");
      SeasonStats = new Link(UriFactory.GetSeasonStatsUri(seasonId), "Season stats");
      SeasonTeamStats = new Link(UriFactory.GetSeasonTeamStatsUri(seasonId, teamId), "Season team stats");
 }
Beispiel #2
0
 public HomeLinks()
     : base(UriFactory.GetHomeUri())
 {
     Games = new Link(UriFactory.GetGamesUri(), "Games");
 }
Beispiel #3
0
 public TeamLinks(string teamId)
     : base(UriFactory.GetTeamUri(teamId))
 {
     TeamPlayers = new Link(UriFactory.GetTeamPlayersUri(teamId), "Team players");
 }
Beispiel #4
0
 public Links(string selfHref)
 {
     Enforce.StringNotNullOrEmpty(selfHref, nameof(selfHref));
      Self = new Link(selfHref);
 }
Beispiel #5
0
 public GameLinks(string gameId, string seasonId, string nextMatchDay)
     : this(gameId)
 {
     Games = new Link(UriFactory.GetGamesUri(), "Games");
      NextMatchDay = new Link(UriFactory.GetMatchDayUri(seasonId, nextMatchDay));
 }
Beispiel #6
0
 public SeasonTeamMatchesLinks(string seasonId, string teamId)
     : base(UriFactory.GetSeasonTeamMatchesUri(seasonId, teamId))
 {
     Team = new Link(UriFactory.GetTeamUri(teamId));
      Season = new Link(UriFactory.GetSeasonUri(seasonId));
 }