Interface IPlaylistManager
Assembly: MediaBrowser.Controller.dll
public interface IPlaylistManager
Methods
Declaration
Task<AddToPlaylistResult> AddToPlaylist(Playlist playlist, long[] itemIds, bool skipDuplicates, User user, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
Playlist |
playlist |
|
System.Int64[] |
itemIds |
|
System.Boolean |
skipDuplicates |
|
User |
user |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
void AddToPlaylist(long playlistId, long[] itemIds, User user)
Parameters
Type |
Name |
Description |
System.Int64 |
playlistId |
The playlist identifier.
|
System.Int64[] |
itemIds |
The item ids.
|
User |
user |
The user.
|
Declaration
Task<PlaylistCreationResult> CreatePlaylist(PlaylistCreationRequest options)
Parameters
Returns
Declaration
AddToPlaylistInfo GetAddToPlaylistInfo(Playlist playlist, long[] itemIds, User user)
Parameters
Type |
Name |
Description |
Playlist |
playlist |
|
System.Int64[] |
itemIds |
|
User |
user |
|
Returns
Declaration
Task MoveItem(Playlist playlist, long entryId, int newIndex)
Parameters
Type |
Name |
Description |
Playlist |
playlist |
|
System.Int64 |
entryId |
|
System.Int32 |
newIndex |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task MoveItem(long playlistId, long entryId, int newIndex)
Parameters
Type |
Name |
Description |
System.Int64 |
playlistId |
The playlist identifier.
|
System.Int64 |
entryId |
The entry identifier.
|
System.Int32 |
newIndex |
The new index.
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
Task.
|
Declaration
Task RemoveFromPlaylist(Playlist playlist, long[] entryIds)
Parameters
Type |
Name |
Description |
Playlist |
playlist |
|
System.Int64[] |
entryIds |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task RemoveFromPlaylist(long playlistId, long[] entryIds)
Parameters
Type |
Name |
Description |
System.Int64 |
playlistId |
The playlist identifier.
|
System.Int64[] |
entryIds |
The entry ids.
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
Task.
|
Events
Declaration
event EventHandler<PlaylistItemsAddedEventArgs> PlaylistItemsAdded
Event Type
Declaration
event EventHandler<PlaylistItemsMovedEventArgs> PlaylistItemsMoved
Event Type
Declaration
event EventHandler<PlaylistItemsRemovedEventArgs> PlaylistItemsRemoved
Event Type
Extension Methods