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