@@ -23,8 +23,8 @@ public async Task<IReadOnlyCollection<LiveLeagueGame>> GetLiveLeagueGames(int? l
2323 {
2424 List < SteamWebRequestParameter > parameters = new List < SteamWebRequestParameter > ( ) ;
2525
26- AddToParametersIfHasValue ( "league_id" , leagueId , parameters ) ;
27- AddToParametersIfHasValue ( "match_id" , matchId , parameters ) ;
26+ AddToParametersIfHasValue ( leagueId , "league_id" , parameters ) ;
27+ AddToParametersIfHasValue ( matchId , "match_id" , parameters ) ;
2828
2929 var liveLeagueGames = await CallMethodAsync < LiveLeagueGameResultContainer > ( "GetLiveLeagueGames" , 1 , parameters ) ;
3030 return new ReadOnlyCollection < LiveLeagueGame > ( liveLeagueGames . Result . Games ) ;
@@ -34,7 +34,7 @@ public async Task<MatchDetailResult> GetMatchDetails(int matchId)
3434 {
3535 List < SteamWebRequestParameter > parameters = new List < SteamWebRequestParameter > ( ) ;
3636
37- AddToParametersIfHasValue ( "match_id" , matchId , parameters ) ;
37+ AddToParametersIfHasValue ( matchId , "match_id" , parameters ) ;
3838
3939 var matchDetail = await CallMethodAsync < MatchDetailResultContainer > ( "GetMatchDetails" , 1 , parameters ) ;
4040 return matchDetail . Result ;
@@ -46,15 +46,15 @@ public async Task<MatchHistoryResult> GetMatchHistory(int? heroId = null, int? g
4646 {
4747 List < SteamWebRequestParameter > parameters = new List < SteamWebRequestParameter > ( ) ;
4848
49- AddToParametersIfHasValue ( "hero_id" , heroId , parameters ) ;
50- AddToParametersIfHasValue ( "game_mode" , gameMode , parameters ) ;
51- AddToParametersIfHasValue ( " skill" , skill , parameters ) ;
52- AddToParametersIfHasValue ( "min_players" , minPlayers , parameters ) ;
53- AddToParametersIfHasValue ( "account_id" , accountId , parameters ) ;
54- AddToParametersIfHasValue ( "league_id" , leagueId , parameters ) ;
55- AddToParametersIfHasValue ( "start_at_match_id" , startAtMatchId , parameters ) ;
56- AddToParametersIfHasValue ( "matches_requested" , matchesRequested , parameters ) ;
57- AddToParametersIfHasValue ( "tournament_games_only" , tournamentGamesOnly , parameters ) ;
49+ AddToParametersIfHasValue ( heroId , "hero_id" , parameters ) ;
50+ AddToParametersIfHasValue ( gameMode , "game_mode" , parameters ) ;
51+ AddToParametersIfHasValue ( skill , " skill" , parameters ) ;
52+ AddToParametersIfHasValue ( minPlayers , "min_players" , parameters ) ;
53+ AddToParametersIfHasValue ( accountId , "account_id" , parameters ) ;
54+ AddToParametersIfHasValue ( leagueId , "league_id" , parameters ) ;
55+ AddToParametersIfHasValue ( startAtMatchId , "start_at_match_id" , parameters ) ;
56+ AddToParametersIfHasValue ( matchesRequested , "matches_requested" , parameters ) ;
57+ AddToParametersIfHasValue ( tournamentGamesOnly , "tournament_games_only" , parameters ) ;
5858
5959 var matchHistory = await CallMethodAsync < MatchHistoryResultContainer > ( "GetMatchHistory" , 1 ) ;
6060 return matchHistory . Result ;
@@ -64,8 +64,8 @@ public async Task<MatchHistoryBySequenceNumberResult> GetMatchHistoryBySequenceN
6464 {
6565 List < SteamWebRequestParameter > parameters = new List < SteamWebRequestParameter > ( ) ;
6666
67- AddToParametersIfHasValue ( "start_at_match_seq_num" , startAtMatchSequenceNumber , parameters ) ;
68- AddToParametersIfHasValue ( "matches_requested" , matchesRequested , parameters ) ;
67+ AddToParametersIfHasValue ( startAtMatchSequenceNumber , "start_at_match_seq_num" , parameters ) ;
68+ AddToParametersIfHasValue ( matchesRequested , "matches_requested" , parameters ) ;
6969
7070 var matchHistory = await CallMethodAsync < MatchHistoryBySequenceNumberResultContainer > ( "GetMatchHistoryBySequenceNum" , 1 ) ;
7171 return matchHistory . Result ;
@@ -81,8 +81,8 @@ public async Task<IReadOnlyCollection<TeamInfo>> GetTeamInfoByTeamId(long? start
8181 {
8282 List < SteamWebRequestParameter > parameters = new List < SteamWebRequestParameter > ( ) ;
8383
84- AddToParametersIfHasValue ( "start_at_team_id" , startAtTeamId , parameters ) ;
85- AddToParametersIfHasValue ( "teams_requested" , teamsRequested , parameters ) ;
84+ AddToParametersIfHasValue ( startAtTeamId , "start_at_team_id" , parameters ) ;
85+ AddToParametersIfHasValue ( teamsRequested , "teams_requested" , parameters ) ;
8686
8787 var teamInfos = await CallMethodAsync < TeamInfoResultContainer > ( "GetTeamInfoByTeamID" , 1 ) ;
8888 return new ReadOnlyCollection < TeamInfo > ( teamInfos . Result . Teams ) ;
0 commit comments