using MediaBrowser.Controller.Entities;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Persistence
{
///
/// Provides an interface to implement an Item repository
///
public interface IItemRepository : IRepository
{
///
/// Saves an item
///
/// The item.
/// The cancellation token.
/// Task.
Task SaveItem(BaseItem item, CancellationToken cancellationToken);
///
/// Gets an item
///
/// The id.
/// BaseItem.
BaseItem RetrieveItem(Guid id);
///
/// Gets children of a given Folder
///
/// The parent.
/// IEnumerable{BaseItem}.
IEnumerable RetrieveChildren(Folder parent);
///
/// Saves children of a given Folder
///
/// The parent id.
/// The children.
/// The cancellation token.
/// Task.
Task SaveChildren(Guid parentId, IEnumerable children, CancellationToken cancellationToken);
}
}