add overloads for modifying tags to allow PocketItem as param;
This commit is contained in:
@@ -20,6 +20,18 @@ namespace PocketSharp
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Adds the specified tags.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <param name="tags">The tags.</param>
|
||||
/// <returns></returns>
|
||||
public bool AddTags(PocketItem item, string[] tags)
|
||||
{
|
||||
return AddTags(item.ID, tags);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Removes the specified tags.
|
||||
/// </summary>
|
||||
@@ -32,6 +44,18 @@ namespace PocketSharp
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Removes the specified tags.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <param name="tags">The tags.</param>
|
||||
/// <returns></returns>
|
||||
public bool RemoveTags(PocketItem item, string[] tags)
|
||||
{
|
||||
return RemoveTags(item.ID, tags);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Clears all tags.
|
||||
/// </summary>
|
||||
@@ -43,6 +67,17 @@ namespace PocketSharp
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Clears all tags.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns></returns>
|
||||
public bool RemoveTags(PocketItem item)
|
||||
{
|
||||
return RemoveTags(item.ID);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Replaces the specified tags.
|
||||
/// </summary>
|
||||
@@ -55,6 +90,18 @@ namespace PocketSharp
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Replaces the specified tags.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <param name="tags">The tags.</param>
|
||||
/// <returns></returns>
|
||||
public bool ReplaceTags(PocketItem item, string[] tags)
|
||||
{
|
||||
return ReplaceTags(item.ID, tags);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Renames a tag.
|
||||
/// </summary>
|
||||
@@ -74,6 +121,18 @@ namespace PocketSharp
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Renames a tag.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.<param>
|
||||
/// <param name="oldTag">The old tag.</param>
|
||||
/// <param name="newTag">The new tag name.</param>
|
||||
/// <returns></returns>
|
||||
public bool RenameTag(PocketItem item, string oldTag, string newTag)
|
||||
{
|
||||
return RenameTag(item.ID, oldTag, newTag);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Puts the send action for tags.
|
||||
|
||||
Reference in New Issue
Block a user