Пример #1
0
        // 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);
        }
Пример #2
0
 // Retrieves player summary.
 public PlayerSummary GetPlayerSummary(long playerId)
 {
     return(PlayerSummary.Query(Key, playerId));
 }