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