Ejemplo n.º 1
0
        private void SaveTvDbEpisodes(int tvDbSeriesId, IEnumerable <TvDbEpisodeData> episodes)
        {
            var fileSpec = new TvDbSeriesEpisodesFileSpec(_jsonSerialiser, _applicationPaths.CachePath, tvDbSeriesId);

            _fileCache.SaveFile(fileSpec, new TvDbEpisodeCollection(episodes));
        }
Ejemplo n.º 2
0
        private Option <IEnumerable <TvDbEpisodeData> > GetLocalTvDbEpisodeData(int tvDbSeriesId)
        {
            var fileSpec = new TvDbSeriesEpisodesFileSpec(_jsonSerialiser, _applicationPaths.CachePath, tvDbSeriesId);

            return(_fileCache.GetFileContent(fileSpec).Select(c => c.Episodes));
        }