/// <summary>
        /// Gets the games.
        /// </summary>
        /// <returns>All <see cref="Game"/>s.</returns>
        public ICollection <Game> GetGames(string steamUserId)
        {
            if (steamUserId == null)
            {
                throw new ArgumentNullException("steamUserId");
            }

            return(_communityService.GetGames(steamUserId, CultureHelper.GetLanguage()).ToList());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the games.
        /// </summary>
        /// <returns>All <see cref="Game"/>s.</returns>
        public List <Game> GetGames(string steamUserId)
        {
            if (steamUserId == null)
            {
                throw new ArgumentNullException("steamUserId");
            }

            return(_communityService.GetGames(steamUserId).ToList());
        }
        /// <summary>
        /// Gets the games.
        /// </summary>
        /// <param name="facebookUserId">The facebook user id.</param>
        /// <returns>
        /// All <see cref="Game"/>s.
        /// </returns>
        public ICollection <Game> GetGames(long facebookUserId)
        {
            string steamUserId = GetSteamUserId(facebookUserId);

            return(_communityService.GetGames(steamUserId, CultureHelper.GetLanguage()).ToList());
        }