aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Collections/ICollectionManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Collections/ICollectionManager.cs')
-rw-r--r--MediaBrowser.Controller/Collections/ICollectionManager.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Collections/ICollectionManager.cs b/MediaBrowser.Controller/Collections/ICollectionManager.cs
new file mode 100644
index 000000000..a1e6b2c12
--- /dev/null
+++ b/MediaBrowser.Controller/Collections/ICollectionManager.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Threading.Tasks;
+
+namespace MediaBrowser.Controller.Collections
+{
+ public interface ICollectionManager
+ {
+ /// <summary>
+ /// Creates the collection.
+ /// </summary>
+ /// <param name="options">The options.</param>
+ /// <returns>Task.</returns>
+ Task CreateCollection(CollectionCreationOptions options);
+
+ /// <summary>
+ /// Adds to collection.
+ /// </summary>
+ /// <param name="collectionId">The collection identifier.</param>
+ /// <param name="itemId">The item identifier.</param>
+ /// <returns>Task.</returns>
+ Task AddToCollection(Guid collectionId, Guid itemId);
+
+ /// <summary>
+ /// Removes from collection.
+ /// </summary>
+ /// <param name="collectionId">The collection identifier.</param>
+ /// <param name="itemId">The item identifier.</param>
+ /// <returns>Task.</returns>
+ Task RemoveFromCollection(Guid collectionId, Guid itemId);
+ }
+}