namespace VersOne.Epub
{
///
/// A container for all content file references within the EPUB book.
///
public class EpubContentRef
{
///
/// Initializes a new instance of the class.
///
/// The content file reference for the cover image of the EPUB book or null if the book doesn't have a cover.
///
/// The file reference to the 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 file references of the EPUB book.
///
/// All CSS file references of the EPUB book.
/// All image file references of the EPUB book.
/// All embedded font file references of the EPUB book.
/// All audio file references of the EPUB book.
/// All content file references of the EPUB book.
public EpubContentRef(EpubLocalByteContentFileRef? cover = null, EpubLocalTextContentFileRef? navigationHtmlFile = null,
EpubContentCollectionRef? html = null,
EpubContentCollectionRef? css = null,
EpubContentCollectionRef? images = null,
EpubContentCollectionRef? fonts = null,
EpubContentCollectionRef? audio = null,
EpubContentCollectionRef? allFiles = null)
{
Cover = cover;
NavigationHtmlFile = navigationHtmlFile;
Html = html ?? new EpubContentCollectionRef();
Css = css ?? new EpubContentCollectionRef();
Images = images ?? new EpubContentCollectionRef();
Fonts = fonts ?? new EpubContentCollectionRef();
Audio = audio ?? new EpubContentCollectionRef();
AllFiles = allFiles ?? new EpubContentCollectionRef();
}
///
/// Gets the content file reference for the cover image of the EPUB book or null if the book doesn't have a cover.
///
public EpubLocalByteContentFileRef? Cover { get; }
///
/// Gets the file reference to the EPUB 3 navigation document of the EPUB book or null if the book doesn't have a EPUB 3 navigation document.
///
public EpubLocalTextContentFileRef? NavigationHtmlFile { get; }
///
/// Gets all HTML/XHTML content file references of the EPUB book.
///
public EpubContentCollectionRef Html { get; }
///
/// Gets all CSS file references of the EPUB book.
///
public EpubContentCollectionRef Css { get; }
///
/// Gets all image file references of the EPUB book.
///
public EpubContentCollectionRef Images { get; }
///
/// Gets all embedded font file references of the EPUB book.
///
public EpubContentCollectionRef Fonts { get; }
///
/// Gets all audio file references of the EPUB book.
///
public EpubContentCollectionRef Audio { get; }
///
/// Gets all content file references of the EPUB book.
///
public EpubContentCollectionRef AllFiles { get; }
}
}