mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-06 15:58:29 +01:00
Added new theme song/video endpoints
This commit is contained in:
@@ -23,6 +23,33 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// </summary>
|
||||
event EventHandler<HttpResponseEventArgs> HttpResponseReceived;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the theme songs async.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user id.</param>
|
||||
/// <param name="itemId">The item id.</param>
|
||||
/// <param name="inheritFromParents">if set to <c>true</c> [inherit from parents].</param>
|
||||
/// <returns>Task{ThemeMediaResult}.</returns>
|
||||
Task<ThemeMediaResult> GetThemeSongsAsync(string userId, string itemId, bool inheritFromParents);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the theme videos async.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user id.</param>
|
||||
/// <param name="itemId">The item id.</param>
|
||||
/// <param name="inheritFromParents">if set to <c>true</c> [inherit from parents].</param>
|
||||
/// <returns>Task{ThemeMediaResult}.</returns>
|
||||
Task<ThemeMediaResult> GetThemeVideosAsync(string userId, string itemId, bool inheritFromParents);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all theme media async.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user id.</param>
|
||||
/// <param name="itemId">The item id.</param>
|
||||
/// <param name="inheritFromParents">if set to <c>true</c> [inherit from parents].</param>
|
||||
/// <returns>Task{AllThemeMediaResult}.</returns>
|
||||
Task<AllThemeMediaResult> GetAllThemeMediaAsync(string userId, string itemId, bool inheritFromParents);
|
||||
|
||||
/// <summary>
|
||||
/// Marks the notifications read.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using System;
|
||||
|
||||
|
||||
namespace MediaBrowser.Model.Querying
|
||||
{
|
||||
/// <summary>
|
||||
/// Class ThemeSongsResult
|
||||
/// Class ThemeMediaResult
|
||||
/// </summary>
|
||||
public class ThemeSongsResult : ItemsResult
|
||||
public class ThemeMediaResult : ItemsResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the owner id.
|
||||
@@ -14,12 +13,10 @@ namespace MediaBrowser.Model.Querying
|
||||
public string OwnerId { get; set; }
|
||||
}
|
||||
|
||||
public class ThemeVideosResult : ItemsResult
|
||||
public class AllThemeMediaResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the owner id.
|
||||
/// </summary>
|
||||
/// <value>The owner id.</value>
|
||||
public string OwnerId { get; set; }
|
||||
public ThemeMediaResult ThemeVideosResult { get; set; }
|
||||
|
||||
public ThemeMediaResult ThemeSongsResult { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user