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