public async Task <PlayerSummariesResponse> GetOwnedGames(List <string> steamIds) { var parameters = new Dictionary <string, string>() { { "steamids", string.Join(',', steamIds) } }; var response = await _router.MakeApiRequest <ResponseBase <PlayerSummariesResponse> >( SteamEndpoints.SteamUser.GetPlayerSummaries, parameters, true); return(response.Response); }
public async Task <OwnedGamesResponse> GetOwnedGames(string steamId) { var parameters = new Dictionary <string, string>() { { "steamid", steamId } }; var response = await _router.MakeApiRequest <ResponseBase <OwnedGamesResponse> >( SteamEndpoints.PlayerService.GetOwnedGames, parameters, true); return(response.Response); }
public async Task <AchievementResponse> GetGlobalAchievementPercentagesForApp(int applicationId) { var parameters = new Dictionary <string, string>() { { "gameid", applicationId.ToString() } }; var response = await _router.MakeApiRequest <AchievementPercentagesWrapper>( SteamEndpoints.SteamUserStats.GetGlobalAchievementPercentagesForApp, parameters, false); return(response.Response); }
public async Task <AppListResponse> GetApplicationList() { var response = await _router.MakeApiRequest <AppListWrapper>( SteamEndpoints.SteamApps.GetAppList, new Dictionary <string, string>(), false); return(response.Response); }
public async Task <NewsForApplicationResponse> GetNewsForApp( int applicationId, int newsItemCount, int previewLength) { var parameters = new Dictionary <string, string>() { { "appid", applicationId.ToString() }, { "count", newsItemCount.ToString() }, { "maxlength", previewLength.ToString() } }; var response = await _router.MakeApiRequest <NewsForApplicationWrapper>( SteamEndpoints.SteamNews.GetNewsForApp, parameters, true); return(response.Response); }