// 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 ban info. public PlayerBanInfo GetPlayerBanInfo(long playerId) { return(PlayerBanInfo.Query(Key, playerId)); }