using System;
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
///
/// A metadata link. Links are used to associate resources with the EPUB book, such as metadata records.
/// See for more information.
///
public class EpubMetadataLink
{
///
/// Initializes a new instance of the class.
///
/// The location of the linked resource.
/// The unique ID of this link or null if the link doesn't have an ID.
/// The media type of the linked resource or null if the link doesn't specify the media type.
///
/// A list of the link properties used to establish the type of record a referenced resource represents or null if the link doesn't specify properties.
///
/// A relative IRI that identifies the resource augmented by the link or null if the link doesn't specify any augmentation.
/// A list of properties that establish the relationship the resource has with the EPUB book.
/// The language of the linked resource or null if the link doesn't specify the language of the linked resource.
/// The parameter is null.
public EpubMetadataLink(string href, string? id = null, string? mediaType = null, List? properties = null, string? refines = null,
List? relationships = null, string? hrefLanguage = null)
{
Href = href ?? throw new ArgumentNullException(nameof(href));
Id = id;
MediaType = mediaType;
Properties = properties;
Refines = refines;
Relationships = relationships ?? new List();
HrefLanguage = hrefLanguage;
}
///
/// Gets the location of the linked resource.
///
/// See
/// and for more information.
///
///
public string Href { get; }
///
/// Gets the unique ID of this link or null if the link doesn't have an ID.
/// See for more information.
///
public string? Id { get; }
///
/// Gets the media type of the linked resource or null if the link doesn't specify the media type.
///
/// See for more information.
///
///
public string? MediaType { get; }
///
/// Gets a list of the link properties used to establish the type of record a referenced resource represents or null if the link doesn't specify properties.
///
/// See
/// and for more information.
///
///
public List? Properties { get; }
///
/// Gets a relative IRI that identifies the resource augmented by the link or null if the link doesn't specify any augmentation.
///
/// See for more information.
///
///
public string? Refines { get; }
///
/// Gets a list of properties that establish the relationship the resource has with the EPUB book.
///
/// See
/// and for more information.
///
///
public List Relationships { get; }
///
/// Gets the language of the linked resource or null if the link doesn't specify the language of the linked resource.
///
/// See
/// and for more information.
///
///
public string? HrefLanguage { get; }
}
}