update version

This commit is contained in:
2013-09-19 18:24:56 +02:00
parent 1912563cc3
commit d7e324129c
5 changed files with 17 additions and 6 deletions
+5 -1
View File
@@ -33,7 +33,7 @@
<p class="app-description">
PocketSharp is a C#.NET class library, that integrates the Pocket API v3
<br><br>
Current version: <b>1.2.0</b>
Current version: <b>1.3.0</b>
</p>
<div class="app-nuget">
<code>Install-Package PocketSharp</code>
@@ -124,6 +124,8 @@ using PocketSharp.Models;</code></pre>
<h2>Release History</h2>
<ul>
<li>2013-09-19 v1.3.0 get Item by ID + tag modification bugfixes</li>
<li>2013-09-18 v1.2.1 correct parameter conversion for DateTime and Boolean</li>
<li>2013-09-17 v1.2.0 simplified retrieve methods</li>
<li>2013-09-17 v1.1.0 fix modification requests</li>
<li>2013-09-15 v1.0.0 convert to PCL &amp; implement async</li>
@@ -209,6 +211,8 @@ Note that <code>GetAccessCode</code> can only be called with an existing <em>req
);</code></pre></p>
<p>It's best to use parameters as <em>named parameters</em>, to avoid typing <code>null</code> values:</p>
<p><pre class="language-clike"><code>List&lt;PocketItem&gt; items = await _client.Retrieve(count: 10, offset: 20, sort: Sort.oldest);</code></pre></p>
<p>Get item by ID:</p>
<p><pre class="language-clike"><code>PocketItem item = await _client.Retrieve(1298198);</code></pre></p>
<p>Find items by a tag:</p>
<p><pre class="language-clike"><code>List&lt;PocketItem&gt; items = await _client.SearchByTag(&quot;tutorial&quot;);</code></pre></p>
<p>Find items by a search string:</p>
+2 -2
View File
@@ -48,7 +48,7 @@ namespace PocketSharp
/// Removes the specified tags.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="tags">The tags.</param>
/// <param name="tags">The tag.</param>
/// <returns></returns>
public async Task<bool> RemoveTags(PocketItem item, string[] tags)
{
@@ -60,7 +60,7 @@ namespace PocketSharp
/// Removes a tag.
/// </summary>
/// <param name="itemID">The item ID.</param>
/// <param name="tags">The tags.</param>
/// <param name="tags">The tag.</param>
/// <returns></returns>
public async Task<bool> RemoveTag(int itemID, string tag)
{
+1 -1
View File
@@ -61,7 +61,7 @@ namespace PocketSharp
state: State.all
);
return items.Single<PocketItem>(item => item.ID == itemID);
return items.SingleOrDefault<PocketItem>(item => item.ID == itemID);
}
+2 -2
View File
@@ -25,5 +25,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.1")]
[assembly: AssemblyFileVersion("1.2.1")]
[assembly: AssemblyVersion("1.3.0")]
[assembly: AssemblyFileVersion("1.3.0")]
+7
View File
@@ -168,6 +168,12 @@ It's best to use parameters as _named parameters_, to avoid typing `null` values
List<PocketItem> items = await _client.Retrieve(count: 10, offset: 20, sort: Sort.oldest);
```
Get item by ID:
```csharp
PocketItem item = await _client.Retrieve(1298198);
```
Find items by a tag:
```csharp
@@ -265,6 +271,7 @@ Renames a tag for the specified item:
## Release History
- 2013-09-19 v1.3.0 get Item by ID + tag modification bugfixes
- 2013-09-18 v1.2.1 correct parameter conversion for DateTime and Boolean
- 2013-09-17 v1.2.0 simplified retrieve methods
- 2013-09-17 v1.1.0 fix modification requests