mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-17 21:20:46 +01:00
update chromecast
This commit is contained in:
@@ -5,6 +5,7 @@ using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Globalization;
|
||||
using MediaBrowser.Model.LiveTv;
|
||||
using MediaBrowser.Model.Notifications;
|
||||
using MediaBrowser.Model.Playlists;
|
||||
using MediaBrowser.Model.Plugins;
|
||||
using MediaBrowser.Model.Querying;
|
||||
using MediaBrowser.Model.Search;
|
||||
@@ -1257,5 +1258,35 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>Task{QueryResult{BaseItemDto}}.</returns>
|
||||
Task<QueryResult<BaseItemDto>> GetLatestChannelItems(AllChannelMediaQuery query, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Creates the playlist.
|
||||
/// </summary>
|
||||
/// <param name="request">The request.</param>
|
||||
/// <returns>Task<PlaylistCreationResult>.</returns>
|
||||
Task<PlaylistCreationResult> CreatePlaylist(PlaylistCreationRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Adds to playlist.
|
||||
/// </summary>
|
||||
/// <param name="playlistId">The playlist identifier.</param>
|
||||
/// <param name="itemIds">The item ids.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task AddToPlaylist(string playlistId, IEnumerable<string> itemIds);
|
||||
|
||||
/// <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 playlist items.
|
||||
/// </summary>
|
||||
/// <param name="query">The query.</param>
|
||||
/// <returns>Task<QueryResult<BaseItemDto>>.</returns>
|
||||
Task<QueryResult<BaseItemDto>> GetPlaylistItems(PlaylistItemQuery query);
|
||||
}
|
||||
}
|
||||
@@ -100,6 +100,8 @@
|
||||
<Compile Include="Configuration\PathSubstitution.cs" />
|
||||
<Compile Include="Notifications\SendToUserType.cs" />
|
||||
<Compile Include="Configuration\ServerConfiguration.cs" />
|
||||
<Compile Include="Playlists\PlaylistCreationRequest.cs" />
|
||||
<Compile Include="Playlists\PlaylistItemQuery.cs" />
|
||||
<Compile Include="Providers\SubtitleOptions.cs" />
|
||||
<Compile Include="Configuration\UnratedItem.cs" />
|
||||
<Compile Include="Dlna\AudioOptions.cs" />
|
||||
|
||||
20
MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs
Normal file
20
MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Playlists
|
||||
{
|
||||
public class PlaylistCreationRequest
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public List<string> ItemIdList { get; set; }
|
||||
|
||||
public string MediaType { get; set; }
|
||||
|
||||
public string UserId { get; set; }
|
||||
|
||||
public PlaylistCreationRequest()
|
||||
{
|
||||
ItemIdList = new List<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
37
MediaBrowser.Model/Playlists/PlaylistItemQuery.cs
Normal file
37
MediaBrowser.Model/Playlists/PlaylistItemQuery.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using MediaBrowser.Model.Querying;
|
||||
|
||||
namespace MediaBrowser.Model.Playlists
|
||||
{
|
||||
public class PlaylistItemQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier.</value>
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user identifier.
|
||||
/// </summary>
|
||||
/// <value>The user identifier.</value>
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start index.
|
||||
/// </summary>
|
||||
/// <value>The start index.</value>
|
||||
public int? StartIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the limit.
|
||||
/// </summary>
|
||||
/// <value>The limit.</value>
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the fields.
|
||||
/// </summary>
|
||||
/// <value>The fields.</value>
|
||||
public ItemFields[] Fields { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user