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