/// <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) { m_apiKey = _apiKey; m_webClient = new WebClient();//initialise webclient for downloading xml files m_webClient.Encoding = Encoding.UTF8; m_xmlHandler = new TvdbXmlReader();//xml handler (extract xml information into objects) }
/// <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) { m_xmlWriter = new TvdbXmlWriter(); m_xmlReader = new TvdbXmlReader(); m_rootFolder = _rootFolder; }