namespace VersOne.Epub { /// /// A container for all content files within the EPUB book. /// public class EpubContent { /// /// Initializes a new instance of the class. /// /// Content file for the cover image of the EPUB book or null if the book doesn't have a cover. /// EPUB 3 navigation document of the EPUB book or null if the book doesn't have a EPUB 3 navigation document. /// All HTML/XHTML content files of the EPUB book. /// All CSS files of the EPUB book. /// All image files of the EPUB book. /// All embedded font files of the EPUB book. /// All audio files of the EPUB book. /// All content files of the EPUB book. public EpubContent(EpubLocalByteContentFile? cover = null, EpubLocalTextContentFile? navigationHtmlFile = null, EpubContentCollection? html = null, EpubContentCollection? css = null, EpubContentCollection? images = null, EpubContentCollection? fonts = null, EpubContentCollection? audio = null, EpubContentCollection? allFiles = null) { Cover = cover; NavigationHtmlFile = navigationHtmlFile; Html = html ?? new EpubContentCollection(); Css = css ?? new EpubContentCollection(); Images = images ?? new EpubContentCollection(); Fonts = fonts ?? new EpubContentCollection(); Audio = audio ?? new EpubContentCollection(); AllFiles = allFiles ?? new EpubContentCollection(); } /// /// Gets the content file for the cover image of the EPUB book or null if the book doesn't have a cover. /// public EpubLocalByteContentFile? Cover { get; } /// /// Gets the EPUB 3 navigation document of the EPUB book or null if the book doesn't have a EPUB 3 navigation document. /// public EpubLocalTextContentFile? NavigationHtmlFile { get; } /// /// Gets all HTML/XHTML content files of the EPUB book. /// public EpubContentCollection Html { get; } /// /// Gets all CSS files of the EPUB book. /// public EpubContentCollection Css { get; } /// /// Gets all image files of the EPUB book. /// public EpubContentCollection Images { get; } /// /// Gets all embedded font files of the EPUB book. /// public EpubContentCollection Fonts { get; } /// /// Gets all audio files of the EPUB book. /// public EpubContentCollection Audio { get; } /// /// Gets all content files of the EPUB book. /// public EpubContentCollection AllFiles { get; } } }