コード例 #1
0
 /// <summary>
 /// Constructor for XmlCacheProvider
 /// </summary>
 /// <param name="rootFolder">This is the folder on the disk where all the information are stored</param>
 public XmlCacheProvider(String rootFolder)
 {
   Initialised = false;
   _xmlWriter = new TvdbXmlWriter();
   _xmlReader = new TvdbXmlReader();
   _rootFolder = rootFolder;
 }
コード例 #2
0
 /// <summary>
 /// TvdbDownloader constructor
 /// </summary>
 /// <param name="apiKey">The api key used for downloading data from thetvdb -> see http://thetvdb.com/wiki/index.php/Programmers_API</param>
 public TvdbDownloader(String apiKey)
 {
   _apiKey = apiKey;
   _xmlHandler = new TvdbXmlReader();//xml handler (extract xml information into objects)
 }