2014-03-06 05:17:13 +00:00
|
|
|
|
using System;
|
2014-03-07 15:53:23 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-03-06 05:17:13 +00:00
|
|
|
|
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>
|
2014-03-07 15:53:23 +00:00
|
|
|
|
/// <param name="itemIds">The item ids.</param>
|
2014-03-06 05:17:13 +00:00
|
|
|
|
/// <returns>Task.</returns>
|
2014-03-07 15:53:23 +00:00
|
|
|
|
Task AddToCollection(Guid collectionId, IEnumerable<Guid> itemIds);
|
2014-03-06 05:17:13 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Removes from collection.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="collectionId">The collection identifier.</param>
|
2014-03-07 15:53:23 +00:00
|
|
|
|
/// <param name="itemIds">The item ids.</param>
|
2014-03-06 05:17:13 +00:00
|
|
|
|
/// <returns>Task.</returns>
|
2014-03-07 15:53:23 +00:00
|
|
|
|
Task RemoveFromCollection(Guid collectionId, IEnumerable<Guid> itemIds);
|
2014-03-06 05:17:13 +00:00
|
|
|
|
}
|
|
|
|
|
}
|