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