using System;
using VersOne.Epub.Schema;
namespace VersOne.Epub
{
///
/// A file located outside of the EPUB archive with its content represented as a string. It is used mainly for HTML and CSS files.
/// Unlike , this class contains the whole content of the file.
///
public class EpubRemoteTextContentFile : EpubRemoteContentFile
{
///
/// 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 content of the file.
/// The parameter is null.
public EpubRemoteTextContentFile(string key, EpubContentType contentType, string contentMimeType, string? content)
: base(key, contentType, contentMimeType)
{
Content = content;
}
///
/// Gets the content of the file or null if the content has not been downloaded.
///
public string? Content { get; }
///
/// Gets the type of the content file which is always for remote text content files.
///
public override EpubContentFileType ContentFileType => EpubContentFileType.TEXT;
}
}