// Queries all player info. public static Player Query(string apikey, long playerId) { Player player = new Player { Summary = PlayerSummary.Query(apikey, playerId), BanInfo = PlayerBanInfo.Query(apikey, playerId), OwnedGames = OwnedGameInfo.Query(apikey, playerId, true), RecentGames = OwnedGameInfo.QueryRecent(apikey, playerId, 3), Friends = Friend.Query(apikey, playerId) }; return(player); }
// Retrieves player summary. public PlayerSummary GetPlayerSummary(long playerId) { return(PlayerSummary.Query(Key, playerId)); }