예제 #1
0
        /// <summary>
        /// Load the cached data
        /// </summary>
        /// <returns></returns>
        public TvdbData LoadUserDataFromCache()
        {
            List <TvdbMirror>   mirrors     = LoadMirrorListFromCache();
            List <TvdbLanguage> languages   = LoadLanguageListFromCache();
            DateTime            lastUpdated = LoadLastUpdatedFromCache();
            TvdbData            data        = new TvdbData(new List <TvdbSeries>(), languages, mirrors);

            data.LastUpdated = lastUpdated;
            return(data);
        }
예제 #2
0
 /// <summary>
 /// Saves all available data to cache
 /// </summary>
 /// <param name="_content"></param>
 public void SaveAllToCache(TvdbData _content)
 {
     SaveToCache(_content.LanguageList);
     SaveToCache(_content.Mirrors);
     SaveToCache(_content.LastUpdated);
     foreach (TvdbSeries s in _content.SeriesList)
     {
         SaveToCache(s);
     }
 }
예제 #3
0
        /// <summary>
        /// Loads all cached series from cache -> can take a while
        /// </summary>
        /// <returns></returns>
        public TvdbData LoadUserDataFromCache()
        {
            TvdbData data = new TvdbData();

            data.LanguageList = LoadLanguageListFromCache();
            data.Mirrors      = LoadMirrorListFromCache();
            if (data.SeriesList == null)
            {
                data.SeriesList = new List <TvdbSeries>();
            }
            return(data);
        }
예제 #4
0
 /// <summary>
 /// Saves all available data to cache
 /// </summary>
 /// <param name="_content"></param>
 public void SaveAllToCache(TvdbData _content)
 {
     SaveToCache(_content.LanguageList);
       SaveToCache(_content.Mirrors);
       SaveToCache(_content.LastUpdated);
       foreach (TvdbSeries s in _content.SeriesList)
       {
     SaveToCache(s);
       }
 }
예제 #5
0
 /// <summary>
 /// Load the cached data
 /// </summary>
 /// <returns></returns>
 public TvdbData LoadUserDataFromCache()
 {
     List<TvdbMirror> mirrors = LoadMirrorListFromCache();
       List<TvdbLanguage> languages = LoadLanguageListFromCache();
       DateTime lastUpdated = LoadLastUpdatedFromCache();
       TvdbData data = new TvdbData(new List<TvdbSeries>(), languages, mirrors);
       data.LastUpdated = lastUpdated;
       return data;
 }
예제 #6
0
 /// <summary>
 /// Loads all cached series from cache -> can take a while
 /// </summary>
 /// <returns></returns>
 public TvdbData LoadUserDataFromCache()
 {
     TvdbData data = new TvdbData();
       data.LanguageList = LoadLanguageListFromCache();
       data.Mirrors = LoadMirrorListFromCache();
       if (data.SeriesList == null) data.SeriesList = new List<TvdbSeries>();
       return data;
 }