private string GetUrl() { var builder = new NbaUrlBuilder { Season = _season }; switch (_gamesPlayed) { case NbaGames.Last10: builder.LastNGames = "8"; break; case NbaGames.Last15: builder.LastNGames = "15"; break; case NbaGames.All: builder.LastNGames = "0"; break; case NbaGames.Playoffs: builder.LastNGames = "0"; builder.SeasonType = "Playoffs"; break; default: throw new ArgumentOutOfRangeException(); } return(builder.GetUrl()); }
private string GetUrl() { var builder = new NbaUrlBuilder { Season = _season }; switch (_gamesPlayed) { case NbaGames.Last10: builder.LastNGames = "8"; break; case NbaGames.Last15: builder.LastNGames = "15"; break; case NbaGames.All: builder.LastNGames = "0"; break; case NbaGames.Playoffs: builder.LastNGames = "0"; builder.SeasonType = "Playoffs"; break; default: throw new ArgumentOutOfRangeException(); } return builder.GetUrl(); }