using System;
namespace VersOne.Epub.Schema
{
///
/// Reference element of the .
/// See for more information.
///
public class EpubGuideReference
{
///
/// Initializes a new instance of the class.
///
/// The type of the publication component referenced by the property.
/// The title of the reference or null if the reference doesn't have a title.
/// The link to a content document included in the manifest, with an optional fragment identifier.
/// The parameter is null.
/// The parameter is null.
public EpubGuideReference(string type, string? title, string href)
{
Type = type ?? throw new ArgumentNullException(nameof(type));
Title = title;
Href = href ?? throw new ArgumentNullException(nameof(href));
}
///
/// Gets the type of the publication component referenced by the property.
/// See for more information.
///
public string Type { get; }
///
/// Gets the title of the reference or null if the reference doesn't have a title.
/// See for more information.
///
public string? Title { get; }
///
/// Gets the link to a content document included in the manifest, with an optional fragment identifier.
/// See for more information.
///
public string Href { get; }
///
/// Returns a string containing the values of the and properties for debugging purposes.
///
/// A string containing the values of the and properties.
public override string ToString()
{
return $"Type: {Type}, Href: {Href}";
}
}
}