using System;
namespace VersOne.Epub.Schema
{
///
/// Represents a description of the EPUB book.
///
/// See ,
/// ,
/// and for more information.
///
///
public class EpubMetadataDescription
{
///
/// Initializes a new instance of the class.
///
/// The text content of this description.
/// The unique ID of this description or null if the description doesn't have an ID.
/// The text direction of this description or null if the description doesn't specify a text direction.
/// The language of this description or null if the description doesn't specify the language.
/// The parameter is null.
public EpubMetadataDescription(string description, string? id = null, EpubTextDirection? textDirection = null, string? language = null)
{
Description = description ?? throw new ArgumentNullException(nameof(description));
Id = id;
TextDirection = textDirection;
Language = language;
}
///
/// Gets the text content of this description.
///
/// See ,
/// ,
/// and for more information.
///
///
public string Description { get; }
///
/// Gets the unique ID of this description or null if the description doesn't have an ID.
/// See for more information.
///
public string? Id { get; }
///
/// Gets the text direction of this description or null if the description doesn't specify a text direction.
/// See for more information.
///
public EpubTextDirection? TextDirection { get; }
///
/// Gets the language of this description or null if the description doesn't specify the language.
/// See for more information.
///
public string? Language { get; }
}
}