using PocketSharp.Models; using System; using System.Threading.Tasks; namespace PocketSharp { public interface IPocketReader { /// /// Reads article content from the given URI. /// This method does not use the official Article View API, which is private. /// The PocketReader is based on a custom PCL port of NReadability and SgmlReader. /// /// An URI. /// if set to true [only body is returned]. /// if set to true [no headline (h1) is included]. /// A Pocket article with extracted content and title. /// Task Read(Uri uri, bool bodyOnly = true, bool noHeadline = false); /// /// Reads article content from the given PocketItem. /// This method does not use the official Article View API, which is private. /// The PocketReader is based on a custom PCL port of NReadability and SgmlReader. /// /// The pocket item. /// if set to true [only body is returned]. /// if set to true [no headline (h1) is included]. /// /// A Pocket article with extracted content and title. /// /// Task Read(PocketItem item, bool bodyOnly = true, bool noHeadline = false); } }