using System;
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
///
///
/// Represents a unified collection of EPUB metadata items. A collection allows resources to be assembled into logical groups
/// for a variety of potential uses: enabling content that has been split across multiple EPUB Content Documents to be reassembled
/// back into a meaningful unit (e.g., an index split across multiple documents), identifying resources for specialized purposes
/// (e.g., preview content), or collecting together resources that present additional information about this EPUB book.
///
/// See for more information.
///
public class EpubCollection
{
///
/// Initializes a new instance of the class.
///
/// The role of this collection.
/// The EPUB meta information included into this collection or null if the collection doesn't have any meta information.
/// A list of sub-collections included in this collection.
/// A list of metadata links.
/// The unique ID of this collection or null if the collection doesn't have an ID.
/// The text direction of this collection or null if the collection doesn't specify a text direction.
/// The language of this collection or null if the collection doesn't specify the language.
/// The parameter is null.
public EpubCollection(string role, EpubMetadata? metadata = null, List? nestedCollections = null, List? links = null,
string? id = null, EpubTextDirection? textDirection = null, string? language = null)
{
Role = role ?? throw new ArgumentNullException(nameof(role));
Metadata = metadata;
NestedCollections = nestedCollections ?? new List();
Links = links ?? new List();
Id = id;
TextDirection = textDirection;
Language = language;
}
///
/// Gets the role of this collection.
/// See for more information.
///
public string Role { get; }
///
/// Gets the EPUB meta information included into this collection or null if the collection doesn't have any meta information.
/// See for more information.
///
public EpubMetadata? Metadata { get; }
///
/// Gets a list of sub-collections included in this collection.
/// See for more information.
///
public List NestedCollections { get; }
///
/// Gets a list of metadata links. Links are used to associate resources with this collection, such as metadata records.
/// See for more information.
///
public List Links { get; }
///
/// Gets the unique ID of this collection or null if the collection doesn't have an ID.
/// See for more information.
///
public string? Id { get; }
///
/// Gets the text direction of this collection or null if the collection doesn't specify a text direction.
/// See for more information.
///
public EpubTextDirection? TextDirection { get; }
///
/// Gets the language of this collection or null if the collection doesn't specify the language.
/// See for more information.
///
public string? Language { get; }
}
}