File size: 1,677 Bytes
fab29d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
using System;
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
/// <summary>
/// <para>
/// Parsed content of the EPUB 3 navigation document of the EPUB book.
/// Navigation document includes human- and machine-readable content that facilitates navigation through the book.
/// </para>
/// <para>See <see href="https://www.w3.org/TR/epub-33/#sec-nav" /> for more information.</para>
/// </summary>
public class Epub3NavDocument
{
/// <summary>
/// Initializes a new instance of the <see cref="Epub3NavDocument" /> class.
/// </summary>
/// <param name="filePath">The absolute path of the EPUB 3 navigation document file in the EPUB archive.</param>
/// <param name="navs">A list of navigation sections in the EPUB 3 navigation document.</param>
/// <exception cref="ArgumentNullException">The <paramref name="filePath" /> parameter is <c>null</c>.</exception>
public Epub3NavDocument(string filePath, List<Epub3Nav>? navs = null)
{
FilePath = filePath ?? throw new ArgumentNullException(nameof(filePath));
Navs = navs ?? new List<Epub3Nav>();
}
/// <summary>
/// Gets the absolute path of the EPUB 3 navigation document file in the EPUB archive.
/// </summary>
public string FilePath { get; }
/// <summary>
/// <para>Gets a list of navigation sections in the EPUB 3 navigation document.</para>
/// <para>See <see href="https://www.w3.org/TR/epub-33/#sec-nav" /> for more information.</para>
/// </summary>
public List<Epub3Nav> Navs { get; }
}
}
|