Example #1
0
        public static async Task <string> GetContentsAsync(this EBook ebook, NavPoint navPoint)
        {
            var manifestItem = ebook.Manifest.FirstOrDefault(a => Path.GetFileName(a.Value.ContentLocation) == Path.GetFileName(navPoint.ContentPath)).Value;

            return(await ebook.GetContentsAsync(manifestItem));
        }
Example #2
0
        public static async Task <string> GetContentsAsync(this EBook ebook, SpineItem spineItem)
        {
            var manifestItem = ebook.Manifest[spineItem.IdRef];

            return(await ebook.GetContentsAsync(manifestItem));
        }