ICollectionManager.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. namespace MediaBrowser.Controller.Collections
  5. {
  6. public interface ICollectionManager
  7. {
  8. /// <summary>
  9. /// Creates the collection.
  10. /// </summary>
  11. /// <param name="options">The options.</param>
  12. /// <returns>Task.</returns>
  13. Task CreateCollection(CollectionCreationOptions options);
  14. /// <summary>
  15. /// Adds to collection.
  16. /// </summary>
  17. /// <param name="collectionId">The collection identifier.</param>
  18. /// <param name="itemIds">The item ids.</param>
  19. /// <returns>Task.</returns>
  20. Task AddToCollection(Guid collectionId, IEnumerable<Guid> itemIds);
  21. /// <summary>
  22. /// Removes from collection.
  23. /// </summary>
  24. /// <param name="collectionId">The collection identifier.</param>
  25. /// <param name="itemIds">The item ids.</param>
  26. /// <returns>Task.</returns>
  27. Task RemoveFromCollection(Guid collectionId, IEnumerable<Guid> itemIds);
  28. }
  29. }