add Modify overloads to supply PocketItems;
This commit is contained in:
@@ -6,7 +6,7 @@ namespace PocketSharp
|
||||
public partial class PocketClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Archives the specified item ID.
|
||||
/// Archives the specified item.
|
||||
/// </summary>
|
||||
/// <param name="itemID">The item ID.</param>
|
||||
/// <returns></returns>
|
||||
@@ -17,7 +17,18 @@ namespace PocketSharp
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Un-archives the specified item ID.
|
||||
/// Archives the specified item.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns></returns>
|
||||
public bool Archive(PocketItem item)
|
||||
{
|
||||
return Archive(item.ID);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Un-archives the specified item.
|
||||
/// </summary>
|
||||
/// <param name="itemID">The item ID.</param>
|
||||
/// <returns></returns>
|
||||
@@ -28,7 +39,18 @@ namespace PocketSharp
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Un-archives the specified item ID (alias for Readd).
|
||||
/// Un-archives the specified item.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns></returns>
|
||||
public bool Readd(PocketItem item)
|
||||
{
|
||||
return Unarchive(item.ID);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Un-archives the specified item (alias for Readd).
|
||||
/// </summary>
|
||||
/// <param name="itemID">The item ID.</param>
|
||||
/// <returns></returns>
|
||||
@@ -39,7 +61,18 @@ namespace PocketSharp
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Favorites the specified item ID.
|
||||
/// Unarchives the specified item.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns></returns>
|
||||
public bool Unarchive(PocketItem item)
|
||||
{
|
||||
return Unarchive(item.ID);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Favorites the specified item.
|
||||
/// </summary>
|
||||
/// <param name="itemID">The item ID.</param>
|
||||
/// <returns></returns>
|
||||
@@ -50,7 +83,18 @@ namespace PocketSharp
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Un-favorites the specified item ID.
|
||||
/// Favorites the specified item.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns></returns>
|
||||
public bool Favorite(PocketItem item)
|
||||
{
|
||||
return Favorite(item.ID);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Un-favorites the specified item.
|
||||
/// </summary>
|
||||
/// <param name="itemID">The item ID.</param>
|
||||
/// <returns></returns>
|
||||
@@ -61,7 +105,18 @@ namespace PocketSharp
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified item ID.
|
||||
/// Un-favorites the specified item.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns></returns>
|
||||
public bool Unfavorite(PocketItem item)
|
||||
{
|
||||
return Unfavorite(item.ID);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified item.
|
||||
/// </summary>
|
||||
/// <param name="itemID">The item ID.</param>
|
||||
/// <returns></returns>
|
||||
@@ -69,5 +124,16 @@ namespace PocketSharp
|
||||
{
|
||||
return PutAction(itemID, "delete");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified item.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns></returns>
|
||||
public bool Delete(PocketItem item)
|
||||
{
|
||||
return Delete(item.ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>bin\Debug\PocketSharp.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
||||
Reference in New Issue
Block a user