/// <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; }
/// <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) }