Interface IPlaylistManager
Namespace: MediaBrowser.Controller.Playlists
Assembly: MediaBrowser.Controller.dll
Syntax
public interface IPlaylistManager
Methods
AddToPlaylist(Playlist, Int64[], Boolean, User, CancellationToken)
Declaration
Task<AddToPlaylistResult> AddToPlaylist(Playlist playlist, long[] itemIds, bool skipDuplicates, User user, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Playlist | playlist | |
System. |
itemIds | |
System. |
skipDuplicates | |
User | user | |
System. |
cancellationToken |
Returns
Type | Description |
---|---|
System. |
AddToPlaylist(Int64, Int64[], User)
Adds to playlist.
Declaration
void AddToPlaylist(long playlistId, long[] itemIds, User user)
Parameters
Type | Name | Description |
---|---|---|
System. |
playlistId | The playlist identifier. |
System. |
itemIds | The item ids. |
User | user | The user. |
CreatePlaylist(PlaylistCreationRequest)
Creates the playlist.
Declaration
Task<PlaylistCreationResult> CreatePlaylist(PlaylistCreationRequest options)
Parameters
Type | Name | Description |
---|---|---|
Playlist |
options | The options. |
Returns
Type | Description |
---|---|
System. |
Task<Playlist>. |
GetAddToPlaylistInfo(Playlist, Int64[], User)
Declaration
AddToPlaylistInfo GetAddToPlaylistInfo(Playlist playlist, long[] itemIds, User user)
Parameters
Returns
Type | Description |
---|---|
Add |
MoveItem(Playlist, Int64, Int32)
Declaration
Task MoveItem(Playlist playlist, long entryId, int newIndex)
Parameters
Type | Name | Description |
---|---|---|
Playlist | playlist | |
System. |
entryId | |
System. |
newIndex |
Returns
Type | Description |
---|---|
System. |
MoveItem(Int64, Int64, Int32)
Moves the item.
Declaration
Task MoveItem(long playlistId, long entryId, int newIndex)
Parameters
Type | Name | Description |
---|---|---|
System. |
playlistId | The playlist identifier. |
System. |
entryId | The entry identifier. |
System. |
newIndex | The new index. |
Returns
Type | Description |
---|---|
System. |
Task. |
RemoveFromPlaylist(Playlist, Int64[])
Declaration
Task RemoveFromPlaylist(Playlist playlist, long[] entryIds)
Parameters
Type | Name | Description |
---|---|---|
Playlist | playlist | |
System. |
entryIds |
Returns
Type | Description |
---|---|
System. |
RemoveFromPlaylist(Int64, Int64[])
Removes from playlist.
Declaration
Task RemoveFromPlaylist(long playlistId, long[] entryIds)
Parameters
Type | Name | Description |
---|---|---|
System. |
playlistId | The playlist identifier. |
System. |
entryIds | The entry ids. |
Returns
Type | Description |
---|---|
System. |
Task. |