diff --git a/Assets/github-header.png b/Assets/github-header.png
index 0b69073..731ee7f 100644
Binary files a/Assets/github-header.png and b/Assets/github-header.png differ
diff --git a/ReadSharp/IPocketReader.cs b/ReadSharp/IReader.cs
similarity index 54%
rename from ReadSharp/IPocketReader.cs
rename to ReadSharp/IReader.cs
index 6e7ea67..4ba8acf 100644
--- a/ReadSharp/IPocketReader.cs
+++ b/ReadSharp/IReader.cs
@@ -4,20 +4,18 @@ using System.Threading.Tasks;
namespace ReadSharp
{
- public interface IPocketReader
+ public interface IReader
{
///
- /// 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.
+ /// Reads article content from the given URI.
///
/// An URI to extract the content from.
/// 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.
+ /// An article with extracted content and meta information.
///
///
- Task Read(Uri uri, bool bodyOnly = true, bool noHeadline = false);
+ Task Read(Uri uri, bool bodyOnly = true, bool noHeadline = false);
}
}
\ No newline at end of file
diff --git a/ReadSharp/Models/PocketArticle.cs b/ReadSharp/Models/Article.cs
similarity index 90%
rename from ReadSharp/Models/PocketArticle.cs
rename to ReadSharp/Models/Article.cs
index b8d8112..9d660d1 100644
--- a/ReadSharp/Models/PocketArticle.cs
+++ b/ReadSharp/Models/Article.cs
@@ -8,7 +8,7 @@ namespace ReadSharp.Models
/// Readable article
///
[ImplementPropertyChanged]
- public class PocketArticle
+ public class Article
{
///
/// Gets or sets the content.
@@ -24,7 +24,7 @@ namespace ReadSharp.Models
///
/// The images.
///
- public List Images { get; set; }
+ public List Images { get; set; }
///
/// Gets or sets the title.
diff --git a/ReadSharp/Models/PocketArticleImage.cs b/ReadSharp/Models/ArticleImage.cs
similarity index 95%
rename from ReadSharp/Models/PocketArticleImage.cs
rename to ReadSharp/Models/ArticleImage.cs
index b9521b9..798b81c 100644
--- a/ReadSharp/Models/PocketArticleImage.cs
+++ b/ReadSharp/Models/ArticleImage.cs
@@ -7,7 +7,7 @@ namespace ReadSharp.Models
/// Article image
///
[ImplementPropertyChanged]
- public class PocketArticleImage
+ public class ArticleImage
{
///
/// Gets or sets the URI.
diff --git a/ReadSharp/ReadSharp.csproj b/ReadSharp/ReadSharp.csproj
index 895535c..03e1412 100644
--- a/ReadSharp/ReadSharp.csproj
+++ b/ReadSharp/ReadSharp.csproj
@@ -39,10 +39,10 @@
-
-
-
-
+
+
+
+
diff --git a/ReadSharp/PocketReader.cs b/ReadSharp/Reader.cs
similarity index 85%
rename from ReadSharp/PocketReader.cs
rename to ReadSharp/Reader.cs
index 78132ad..8f21508 100644
--- a/ReadSharp/PocketReader.cs
+++ b/ReadSharp/Reader.cs
@@ -13,7 +13,7 @@ namespace ReadSharp
///
/// PocketReader
///
- public class PocketReader : IPocketReader
+ public class Reader : IReader
{
///
/// Used UserAgent for HTTP request
@@ -27,12 +27,12 @@ namespace ReadSharp
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
/// Custom UserAgent string.
/// The HttpMessage handler.
/// Request timeout (in seconds).
- public PocketReader(string userAgent = null, HttpMessageHandler handler = null, int? timeout = null)
+ public Reader(string userAgent = null, HttpMessageHandler handler = null, int? timeout = null)
{
// override user agent
if (!string.IsNullOrEmpty(userAgent))
@@ -65,18 +65,16 @@ namespace ReadSharp
///
- /// 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.
+ /// Reads article content from the given URI.
///
/// An URI to extract the content from.
/// 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.
+ /// An article with extracted content and meta information.
///
///
- public async Task Read(Uri uri, bool bodyOnly = true, bool noHeadline = false)
+ public async Task Read(Uri uri, bool bodyOnly = true, bool noHeadline = false)
{
// initialize transcoder
NReadabilityTranscoder transcoder = new NReadabilityTranscoder(
@@ -111,12 +109,12 @@ namespace ReadSharp
TranscodingResult transcodingResult = transcoder.Transcode(transcodingInput);
// get images from article
- List images = transcodingResult.Images.Select(image =>
+ List images = transcodingResult.Images.Select(image =>
{
Uri imageUri;
Uri.TryCreate(image.GetAttributeValue("src", null), UriKind.Absolute, out imageUri);
- return new PocketArticleImage()
+ return new ArticleImage()
{
Uri = imageUri,
Title = image.GetAttributeValue("title", null),
@@ -125,7 +123,7 @@ namespace ReadSharp
}).ToList();
// create article
- return new PocketArticle()
+ return new Article()
{
Content = transcodingResult.ExtractedContent,
Images = images,