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