diff --git a/PocketSharp/Components/Modify.cs b/PocketSharp/Components/Modify.cs index b07185f..4866c3c 100644 --- a/PocketSharp/Components/Modify.cs +++ b/PocketSharp/Components/Modify.cs @@ -6,7 +6,7 @@ namespace PocketSharp public partial class PocketClient { /// - /// Archives the specified item ID. + /// Archives the specified item. /// /// The item ID. /// @@ -17,7 +17,18 @@ namespace PocketSharp /// - /// Un-archives the specified item ID. + /// Archives the specified item. + /// + /// The item. + /// + public bool Archive(PocketItem item) + { + return Archive(item.ID); + } + + + /// + /// Un-archives the specified item. /// /// The item ID. /// @@ -28,7 +39,18 @@ namespace PocketSharp /// - /// Un-archives the specified item ID (alias for Readd). + /// Un-archives the specified item. + /// + /// The item. + /// + public bool Readd(PocketItem item) + { + return Unarchive(item.ID); + } + + + /// + /// Un-archives the specified item (alias for Readd). /// /// The item ID. /// @@ -39,7 +61,18 @@ namespace PocketSharp /// - /// Favorites the specified item ID. + /// Unarchives the specified item. + /// + /// The item. + /// + public bool Unarchive(PocketItem item) + { + return Unarchive(item.ID); + } + + + /// + /// Favorites the specified item. /// /// The item ID. /// @@ -50,7 +83,18 @@ namespace PocketSharp /// - /// Un-favorites the specified item ID. + /// Favorites the specified item. + /// + /// The item. + /// + public bool Favorite(PocketItem item) + { + return Favorite(item.ID); + } + + + /// + /// Un-favorites the specified item. /// /// The item ID. /// @@ -61,7 +105,18 @@ namespace PocketSharp /// - /// Deletes the specified item ID. + /// Un-favorites the specified item. + /// + /// The item. + /// + public bool Unfavorite(PocketItem item) + { + return Unfavorite(item.ID); + } + + + /// + /// Deletes the specified item. /// /// The item ID. /// @@ -69,5 +124,16 @@ namespace PocketSharp { return PutAction(itemID, "delete"); } + + + /// + /// Deletes the specified item. + /// + /// The item. + /// + public bool Delete(PocketItem item) + { + return Delete(item.ID); + } } } diff --git a/PocketSharp/PocketSharp.csproj b/PocketSharp/PocketSharp.csproj index b366538..159bb27 100644 --- a/PocketSharp/PocketSharp.csproj +++ b/PocketSharp/PocketSharp.csproj @@ -20,6 +20,7 @@ DEBUG;TRACE prompt 4 + bin\Debug\PocketSharp.XML pdbonly