using System;
namespace VersOne.Epub.Schema
{
///
/// The date of the publication or some other event associated with the EPUB book.
///
/// See ,
/// ,
/// and for more information.
///
///
public class EpubMetadataDate
{
///
/// Initializes a new instance of the class.
///
/// The date of the event.
/// The unique ID of this EPUB metadata date item.
///
/// The name of the event represented by this date (e.g., creation, publication, modification, etc.) or null if the event doesn't have a name.
///
/// The parameter is null.
public EpubMetadataDate(string date, string? id = null, string? @event = null)
{
Date = date ?? throw new ArgumentNullException(nameof(date));
Id = id;
Event = @event;
}
///
/// Gets the date of the event.
///
/// See ,
/// ,
/// and for more information.
///
///
public string Date { get; }
///
/// Gets the unique ID of this EPUB metadata date item.
/// See for more information.
///
public string? Id { get; }
///
/// Gets the name of the event represented by this date (e.g., creation, publication, modification, etc.) or null if the event doesn't have a name.
///
/// See for more information.
///
///
public string? Event { get; }
}
}