using System;
using VersOne.Epub.Schema;
namespace VersOne.Epub
{
///
/// The base class for a remote content file outside of the EPUB archive (e.g., an HTML file or an image).
/// Unlike , the classes derived from this base class contain the whole content of the file.
///
public abstract class EpubRemoteContentFile : EpubContentFile
{
///
/// Initializes a new instance of the class.
///
/// The content file key as it is declared in the EPUB manifest (in the property).
/// The type of the content of the file.
/// The MIME type of the content of the file.
/// The parameter is null.
protected EpubRemoteContentFile(string key, EpubContentType contentType, string contentMimeType)
: base(key, contentType, contentMimeType)
{
}
///
/// Gets the absolute URI of the remote content file (as it is specified in the EPUB manifest).
///
public string Url => Key;
///
/// Gets the location of the content file which is always for remote content files.
///
public override EpubContentLocation ContentLocation => EpubContentLocation.REMOTE;
}
}