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