diff --git a/PocketSharp/Components/ModifyTags.cs b/PocketSharp/Components/ModifyTags.cs index 4f7ed9e..5ddf45e 100644 --- a/PocketSharp/Components/ModifyTags.cs +++ b/PocketSharp/Components/ModifyTags.cs @@ -1,4 +1,4 @@ -using PocketSharp.Models; +using PocketSharp.Models; using System.Threading; using System.Threading.Tasks; @@ -148,41 +148,24 @@ namespace PocketSharp /// - /// Renames a tag in an item. + /// Renames a tag. This affects all items with this tag. /// - /// The item ID. /// The old tag. /// The new tag name. /// The cancellation token. /// /// - public async Task RenameTag(string itemID, string oldTag, string newTag, CancellationToken cancellationToken = default(CancellationToken)) + public async Task RenameTag(string oldTag, string newTag, CancellationToken cancellationToken = default(CancellationToken)) { return await Send(new PocketAction() { Action = "tag_rename", - ID = itemID, OldTag = oldTag, NewTag = newTag }, cancellationToken); } - /// - /// Renames a tag in an item. - /// - /// The item. - /// The old tag. - /// The new tag name. - /// The cancellation token. - /// - /// - public async Task RenameTag(PocketItem item, string oldTag, string newTag, CancellationToken cancellationToken = default(CancellationToken)) - { - return await RenameTag(item.ID, oldTag, newTag, cancellationToken); - } - - /// /// Puts the send action for tags. /// diff --git a/PocketSharp/IPocketClient.cs b/PocketSharp/IPocketClient.cs index c6d021d..7cfba6e 100644 --- a/PocketSharp/IPocketClient.cs +++ b/PocketSharp/IPocketClient.cs @@ -434,28 +434,16 @@ namespace PocketSharp Task ReplaceTags(PocketItem item, string[] tags, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Renames a tag in an item. + /// Renames a tag. This affects all items with this tag. /// - /// The item ID. /// The old tag. /// The new tag name. /// The cancellation token. /// /// - Task RenameTag(string itemID, string oldTag, string newTag, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Renames a tag in an item. - /// - /// The item. - /// The old tag. - /// The new tag name. - /// The cancellation token. - /// - /// - Task RenameTag(PocketItem item, string oldTag, string newTag, CancellationToken cancellationToken = default(CancellationToken)); + Task RenameTag(string oldTag, string newTag, CancellationToken cancellationToken = default(CancellationToken)); #endregion - + #region statistics methods /// /// Statistics from the user account.