/CBR/CBR.Core/Models/ePUB/Package.cs
C# | 55 lines | 53 code | 1 blank | 1 comment | 0 complexity | 1b0ccfdd33ebeb0d85620ad6ac1ef4f0 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.IO;
-
- namespace CBR.Core.Models
- {
- public class Package
- {
- public Package(string packFile)
- {
- //somethings like OEBPS/content.opf
- RelativeFilePath = packFile.Replace("/", "\\" );
-
- //extract OEBPS
- PublicationFolder = Path.GetDirectoryName(RelativeFilePath);
- }
-
- /// <summary>
- /// OEBPS folder contains opf, ncx and all items
- /// </summary>
- public string PublicationFolder { get; set; }
-
- public string RelativeFilePath { get; set; }
-
- //required metadata
- public string Identifier { get; set; }
- public string Title { get; set; }
- public string Language { get; set; }
-
- /// <summary>
- /// additional metadata
- /// </summary>
- public List<Metadata> MetaDatas { get; set; }
-
- /// <summary>
- ///
- /// </summary>
- public Spine Spine { get; set; }
-
- /// <summary>
- ///
- /// </summary>
- public List<ManifestItem> ManifestItems { get; set; }
-
- /// <summary>
- ///
- /// </summary>
- public TableOfContent Toc { get; set; }
-
- public string CoverId { get; set; }
-
- }
- }