using System;
namespace VersOne.Epub.Schema
{
///
/// Navigation section in the .
/// See for more information.
///
public class Epub3Nav
{
///
/// Initializes a new instance of the class with specified type and navigation level.
///
/// The type of the navigation section or null if the type is not specified.
/// The top navigation level of the navigation section (represented by the <ol> HTML tag in the navigation document).
/// The parameter is null.
public Epub3Nav(Epub3StructuralSemanticsProperty? type, Epub3NavOl ol)
: this(type, false, null, ol)
{
}
///
/// Initializes a new instance of the class with specified type, hidden flag, head, and navigation level.
///
/// The type of the navigation section or null if the type is not specified.
/// A value indicating whether the navigation section should be hidden from the reader or not.
/// The header of the navigation section or null if the header is not present.
/// The top navigation level of the navigation section (represented by the <ol> HTML tag in the navigation document).
/// The parameter is null.
public Epub3Nav(Epub3StructuralSemanticsProperty? type, bool isHidden, string? head, Epub3NavOl ol)
{
Type = type;
IsHidden = isHidden;
Head = head;
Ol = ol ?? throw new ArgumentNullException(nameof(ol));
}
///
/// Gets the type of the navigation section or null if the type is not specified.
/// See for more information.
///
public Epub3StructuralSemanticsProperty? Type { get; }
///
/// Gets a value indicating whether the navigation section should be hidden from the reader or not.
/// See for more information.
///
public bool IsHidden { get; }
///
/// Gets the header of the navigation section or null if the header is not present.
/// See for more information.
///
public string? Head { get; }
///
/// Gets the top navigation level of the navigation section (represented by the <ol> HTML tag in the navigation document).
/// See for more information.
///
public Epub3NavOl Ol { get; }
}
}