Exemple #1
0
        private void populateBlock(OpenEpisodeOption get, Episode episode)
        {
            Block = new Block
            {
                ID      = FileInfo.NameWithoutExtension(),
                Episode = episode
            };

            audio = new Audio(folderPath, seasonID, episodeID, Block);

            if (get == OpenEpisodeOption.GetStory)
            {
                readStory();
            }
        }
Exemple #2
0
        public BlockJson(String folderPath, String seasonID, String episodeID, String blockID, OpenEpisodeOption get)
        {
            this.folderPath = folderPath;
            this.seasonID   = seasonID;
            this.episodeID  = episodeID;
            this.blockID    = blockID;

            var storyPath = Paths.BlockFilePath(folderPath, seasonID, episodeID, blockID);

            FileInfo = new FileInfo(storyPath);

            var episode = Episode.Get(folderPath, seasonID, episodeID);

            if (episode != null)
            {
                populateBlock(get, episode);
            }
        }