50 lines
1.7 KiB
C#
50 lines
1.7 KiB
C#
using MediaBrowser.Controller.Entities;
|
|
using MediaBrowser.Model.Playlists;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MediaBrowser.Controller.Playlists
|
|
{
|
|
public interface IPlaylistManager
|
|
{
|
|
/// <summary>
|
|
/// Gets the playlists.
|
|
/// </summary>
|
|
/// <param name="userId">The user identifier.</param>
|
|
/// <returns>IEnumerable<Playlist>.</returns>
|
|
IEnumerable<Playlist> GetPlaylists(string userId);
|
|
|
|
/// <summary>
|
|
/// Creates the playlist.
|
|
/// </summary>
|
|
/// <param name="options">The options.</param>
|
|
/// <returns>Task<Playlist>.</returns>
|
|
Task<PlaylistCreationResult> CreatePlaylist(PlaylistCreationRequest options);
|
|
|
|
/// <summary>
|
|
/// Adds to playlist.
|
|
/// </summary>
|
|
/// <param name="playlistId">The playlist identifier.</param>
|
|
/// <param name="itemIds">The item ids.</param>
|
|
/// <param name="userId">The user identifier.</param>
|
|
/// <returns>Task.</returns>
|
|
Task AddToPlaylist(string playlistId, IEnumerable<string> itemIds, string userId);
|
|
|
|
/// <summary>
|
|
/// Removes from playlist.
|
|
/// </summary>
|
|
/// <param name="playlistId">The playlist identifier.</param>
|
|
/// <param name="entryIds">The entry ids.</param>
|
|
/// <returns>Task.</returns>
|
|
Task RemoveFromPlaylist(string playlistId, IEnumerable<string> entryIds);
|
|
|
|
/// <summary>
|
|
/// Gets the playlists folder.
|
|
/// </summary>
|
|
/// <param name="userId">The user identifier.</param>
|
|
/// <returns>Folder.</returns>
|
|
Folder GetPlaylistsFolder(string userId);
|
|
|
|
}
|
|
}
|