Exemplo n.º 1
0
 // Retrieves recently played owned games info.
 public OwnedGameInfo[] GetRecentGames(long playerId, int count, bool verbose)
 {
     if (verbose)
     {
         return(VerboseOwnedGameInfo.QueryRecent(Key, playerId, count));
     }
     return(OwnedGameInfo.QueryRecent(Key, playerId, count));
 }
Exemplo n.º 2
0
 // Retrieves player owned games info.
 public OwnedGameInfo[] GetOwnedGames(long playerId, bool includeFreeGames, bool verbose)
 {
     if (verbose)
     {
         return(VerboseOwnedGameInfo.Query(Key, playerId, includeFreeGames));
     }
     return(OwnedGameInfo.Query(Key, playerId, includeFreeGames));
 }
Exemplo n.º 3
0
 // Constructor for a player.
 public Player()
 {
     Summary     = null;
     BanInfo     = null;
     OwnedGames  = new OwnedGameInfo[0];
     RecentGames = new OwnedGameInfo[0];
     Friends     = new Friend[0];
 }
Exemplo n.º 4
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);
        }