public S4UDownloader(IApplicationSettings applicationSettings) { var settings = new S4USettings { ApiKey = applicationSettings.GetSetting("S4UApiKey") }; _api = new S4UApi(settings); }
public S4UApi(S4USettings settings) { _baseUrl = $"{SiteUrl}/{settings.ApiKey}/xml/serie/"; _limitsBuilder = new LimitsBuilder(); _xmlSerializer = new XmlSerializer(typeof(Response)); }