From c87ee06cd98347736875523698ac10a02bb8ca6c Mon Sep 17 00:00:00 2001 From: ceee Date: Wed, 26 Jun 2013 23:53:42 +0200 Subject: [PATCH] add overloads for modifying tags to allow PocketItem as param; --- PocketSharp/Components/ModifyTags.cs | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/PocketSharp/Components/ModifyTags.cs b/PocketSharp/Components/ModifyTags.cs index d5e5156..77a799a 100644 --- a/PocketSharp/Components/ModifyTags.cs +++ b/PocketSharp/Components/ModifyTags.cs @@ -20,6 +20,18 @@ namespace PocketSharp } + /// + /// Adds the specified tags. + /// + /// The item. + /// The tags. + /// + public bool AddTags(PocketItem item, string[] tags) + { + return AddTags(item.ID, tags); + } + + /// /// Removes the specified tags. /// @@ -32,6 +44,18 @@ namespace PocketSharp } + /// + /// Removes the specified tags. + /// + /// The item. + /// The tags. + /// + public bool RemoveTags(PocketItem item, string[] tags) + { + return RemoveTags(item.ID, tags); + } + + /// /// Clears all tags. /// @@ -43,6 +67,17 @@ namespace PocketSharp } + /// + /// Clears all tags. + /// + /// The item. + /// + public bool RemoveTags(PocketItem item) + { + return RemoveTags(item.ID); + } + + /// /// Replaces the specified tags. /// @@ -55,6 +90,18 @@ namespace PocketSharp } + /// + /// Replaces the specified tags. + /// + /// The item. + /// The tags. + /// + public bool ReplaceTags(PocketItem item, string[] tags) + { + return ReplaceTags(item.ID, tags); + } + + /// /// Renames a tag. /// @@ -74,6 +121,18 @@ namespace PocketSharp } + /// + /// Renames a tag. + /// + /// The item. + /// The old tag. + /// The new tag name. + /// + public bool RenameTag(PocketItem item, string oldTag, string newTag) + { + return RenameTag(item.ID, oldTag, newTag); + } + /// /// Puts the send action for tags.