/// <summary>
        ///   Initializes a new instance of the <see cref="SteamCommunityManager" /> class.
        /// </summary>
        /// <param name="webClient"> The web client. </param>
        /// <param name="profileParser"> The profile parser. </param>
        /// <param name="gamesParser"> The games parser. </param>
        /// <param name="achievementParser"> The achievement parser. </param>
        /// <param name="errorLogger"> The error logger. </param>
        public SteamCommunityManager(IWebClientWrapper webClient, ISteamProfileXmlParser profileParser,
                                     IGameXmlParser gamesParser, IAchievementXmlParser achievementParser,
                                     IErrorLogger errorLogger)
        {
            if (webClient == null)
            {
                throw new ArgumentNullException("webClient");
            }
            if (profileParser == null)
            {
                throw new ArgumentNullException("profileParser");
            }
            if (gamesParser == null)
            {
                throw new ArgumentNullException("gamesParser");
            }
            if (achievementParser == null)
            {
                throw new ArgumentNullException("achievementParser");
            }
            if (errorLogger == null)
            {
                throw new ArgumentNullException("errorLogger");
            }

            _webClient         = webClient;
            _achievementParser = achievementParser;
            _errorLogger       = errorLogger;
            _gamesParser       = gamesParser;
            _profileParser     = profileParser;
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SteamCommunityManager"/> class.
 /// </summary>
 /// <param name="webClient">The web client.</param>
 /// <param name="profileParser">The profile parser.</param>
 /// <param name="gamesParser">The games parser.</param>
 /// <param name="achievementParser">The achievement parser.</param>
 public SteamCommunityManager(IWebClientWrapper webClient, ISteamProfileXmlParser profileParser,
                              IGameXmlParser gamesParser, IAchievementXmlParser achievementParser)
 {
     _webClient         = webClient;
     _achievementParser = achievementParser;
     _gamesParser       = gamesParser;
     _profileParser     = profileParser;
 }