using System;
using System.Collections.Generic;
using VersOne.Epub.Schema;
namespace VersOne.Epub
{
///
/// Parsed content of all EPUB schema files (OPF package and EPUB 2 NCX / EPUB 3 OPS navigation document) of the EPUB book.
///
/// See
/// and for more information.
///
///
public class EpubSchema
{
///
/// Initializes a new instance of the class.
///
/// The parsed content of the OPF package of the EPUB book.
///
/// The parsed content of the EPUB 2 NCX document which is used for navigation within the EPUB 2 book or null if the NCX document is not present.
///
/// The parsed content of the EPUB 3 navigation document of the book or null if the navigation document is not present.
/// A list of all SMIL (EPUB media overlay) documents in the book.
/// The content directory path which acts as a root directory for all content files within the EPUB book.
/// The parameter is null.
/// The parameter is null.
public EpubSchema(EpubPackage package, Epub2Ncx? epub2Ncx, Epub3NavDocument? epub3NavDocument, List? mediaOverlays, string contentDirectoryPath)
{
Package = package ?? throw new ArgumentNullException(nameof(package));
Epub2Ncx = epub2Ncx;
Epub3NavDocument = epub3NavDocument;
MediaOverlays = mediaOverlays ?? new List();
ContentDirectoryPath = contentDirectoryPath ?? throw new ArgumentNullException(nameof(contentDirectoryPath));
}
///
/// Gets the parsed content of the OPF package of the EPUB book.
/// See for more information.
///
public EpubPackage Package { get; }
///
/// Gets the parsed content of the EPUB 2 NCX document which is used for navigation within the EPUB 2 book or null if the NCX document is not present.
/// See for more information.
///
public Epub2Ncx? Epub2Ncx { get; }
///
/// Gets the parsed content of the EPUB 3 navigation document of the book or null if the navigation document is not present.
/// See for more information.
///
public Epub3NavDocument? Epub3NavDocument { get; }
///
/// Gets a list of all SMIL (EPUB media overlay) documents in the book.
/// See for more information.
///
public List MediaOverlays { get; }
///
/// Gets the content directory path which acts as a root directory for all content files within the EPUB book.
///
public string ContentDirectoryPath { get; }
}
}