diff --git a/PocketSharp/Components/Get.cs b/PocketSharp/Components/Get.cs index aaf82fd..0eadcc4 100644 --- a/PocketSharp/Components/Get.cs +++ b/PocketSharp/Components/Get.cs @@ -11,13 +11,22 @@ namespace PocketSharp /// public partial class PocketClient { - /// - /// Retrieves items from pocket - /// with the given filters - /// - /// parameters, which are mapped to the officials from http://getpocket.com/developer/docs/v3/retrieve - /// - /// + /// + /// Retrieves items from pocket + /// with the given filters + /// + /// The state. + /// The favorite. + /// The tag. + /// Type of the content. + /// The sort. + /// The search. + /// The domain. + /// The since. + /// The count. + /// The offset. + /// + /// public async Task> Get( State? state = null, bool? favorite = null, diff --git a/PocketSharp/Fody.targets b/PocketSharp/Fody.targets new file mode 100644 index 0000000..a668a51 --- /dev/null +++ b/PocketSharp/Fody.targets @@ -0,0 +1,89 @@ + + + + + + $(NCrunchOriginalSolutionDir) + + + + + $(SolutionDir) + + + + + $(MSBuildProjectDirectory)\..\ + + + + + + + $(KeyOriginatorFile) + + + + + $(AssemblyOriginatorKeyFile) + + + + + + + + + + $(ProjectDir)$(IntermediateOutputPath) + Low + $(SignAssembly) + $(MSBuildThisFileDirectory) + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/PocketSharp/FodyWeavers.xml b/PocketSharp/FodyWeavers.xml new file mode 100644 index 0000000..bb0f322 --- /dev/null +++ b/PocketSharp/FodyWeavers.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/PocketSharp/Models/PocketArticle.cs b/PocketSharp/Models/PocketArticle.cs index 4361156..5ece191 100644 --- a/PocketSharp/Models/PocketArticle.cs +++ b/PocketSharp/Models/PocketArticle.cs @@ -1,13 +1,12 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using PropertyChanged; namespace PocketSharp.Models { /// /// Readable article /// + [ImplementPropertyChanged] public class PocketArticle { /// diff --git a/PocketSharp/Models/PocketAuthor.cs b/PocketSharp/Models/PocketAuthor.cs index 1a90d27..7a679ec 100644 --- a/PocketSharp/Models/PocketAuthor.cs +++ b/PocketSharp/Models/PocketAuthor.cs @@ -1,6 +1,7 @@ using Newtonsoft.Json; using System; using System.Runtime.Serialization; +using PropertyChanged; namespace PocketSharp.Models { @@ -8,6 +9,7 @@ namespace PocketSharp.Models /// Author /// [JsonObject] + [ImplementPropertyChanged] public class PocketAuthor { /// diff --git a/PocketSharp/Models/PocketImage.cs b/PocketSharp/Models/PocketImage.cs index c5d210f..269ff15 100644 --- a/PocketSharp/Models/PocketImage.cs +++ b/PocketSharp/Models/PocketImage.cs @@ -1,6 +1,7 @@ using Newtonsoft.Json; using System; using System.Runtime.Serialization; +using PropertyChanged; namespace PocketSharp.Models { @@ -8,6 +9,7 @@ namespace PocketSharp.Models /// Image /// [JsonObject] + [ImplementPropertyChanged] public class PocketImage { /// diff --git a/PocketSharp/Models/PocketItem.cs b/PocketSharp/Models/PocketItem.cs index d6c33c4..75d9950 100644 --- a/PocketSharp/Models/PocketItem.cs +++ b/PocketSharp/Models/PocketItem.cs @@ -1,7 +1,7 @@ using Newtonsoft.Json; using System; using System.Collections.Generic; -using System.Runtime.Serialization; +using PropertyChanged; namespace PocketSharp.Models { @@ -10,6 +10,7 @@ namespace PocketSharp.Models /// see: http://getpocket.com/developer/docs/v3/retrieve /// [JsonObject] + [ImplementPropertyChanged] public class PocketItem { /// diff --git a/PocketSharp/Models/PocketStatistics.cs b/PocketSharp/Models/PocketStatistics.cs index b3d546c..9309f87 100644 --- a/PocketSharp/Models/PocketStatistics.cs +++ b/PocketSharp/Models/PocketStatistics.cs @@ -1,5 +1,5 @@ using Newtonsoft.Json; -using System.Runtime.Serialization; +using PropertyChanged; namespace PocketSharp.Models { @@ -7,6 +7,7 @@ namespace PocketSharp.Models /// Statistics /// [JsonObject] + [ImplementPropertyChanged] public class PocketStatistics { /// diff --git a/PocketSharp/Models/PocketTag.cs b/PocketSharp/Models/PocketTag.cs index a9ca975..260f662 100644 --- a/PocketSharp/Models/PocketTag.cs +++ b/PocketSharp/Models/PocketTag.cs @@ -1,21 +1,22 @@ using Newtonsoft.Json; -using System.Runtime.Serialization; +using PropertyChanged; namespace PocketSharp.Models { - /// - /// Tag - /// - [JsonObject] - public class PocketTag - { /// - /// Gets or sets the name. + /// Tag /// - /// - /// The name. - /// - [JsonProperty("tag")] - public string Name { get; set; } - } + [JsonObject] + [ImplementPropertyChanged] + public class PocketTag + { + /// + /// Gets or sets the name. + /// + /// + /// The name. + /// + [JsonProperty("tag")] + public string Name { get; set; } + } } diff --git a/PocketSharp/Models/PocketVideo.cs b/PocketSharp/Models/PocketVideo.cs index 396b64c..080f174 100644 --- a/PocketSharp/Models/PocketVideo.cs +++ b/PocketSharp/Models/PocketVideo.cs @@ -1,40 +1,42 @@ using Newtonsoft.Json; using System; using System.Runtime.Serialization; +using PropertyChanged; namespace PocketSharp.Models { - /// - /// Video - /// - [JsonObject] - public class PocketVideo - { /// - /// Gets or sets the ID. + /// Video /// - /// - /// The ID. - /// - [JsonProperty("video_id")] - public string ID { get; set; } + [JsonObject] + [ImplementPropertyChanged] + public class PocketVideo + { + /// + /// Gets or sets the ID. + /// + /// + /// The ID. + /// + [JsonProperty("video_id")] + public string ID { get; set; } - /// - /// Gets or sets the external ID. - /// - /// - /// The external ID. - /// - [JsonProperty("vid")] - public string ExternalID { get; set; } + /// + /// Gets or sets the external ID. + /// + /// + /// The external ID. + /// + [JsonProperty("vid")] + public string ExternalID { get; set; } - /// - /// Gets or sets the URI. - /// - /// - /// The URI. - /// - [JsonProperty("src")] - public Uri Uri { get; set; } - } + /// + /// Gets or sets the URI. + /// + /// + /// The URI. + /// + [JsonProperty("src")] + public Uri Uri { get; set; } + } } diff --git a/PocketSharp/PocketSharp.csproj b/PocketSharp/PocketSharp.csproj index 16d9bbc..3007ad3 100644 --- a/PocketSharp/PocketSharp.csproj +++ b/PocketSharp/PocketSharp.csproj @@ -16,6 +16,7 @@ {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} ..\ true + ..\packages\Fody.1.17.4.0 true @@ -36,6 +37,7 @@ + @@ -106,6 +108,9 @@ NReadability + + + @@ -119,6 +124,7 @@ +