Merge pull request #11665 from Bond-009/getuserbyid

This commit is contained in:
Cody Robibero
2024-08-28 12:39:48 -06:00
committed by GitHub
16 changed files with 75 additions and 98 deletions

View File

@@ -1,6 +1,7 @@
#pragma warning disable CS1591
using System;
using Jellyfin.Data.Entities;
using Jellyfin.Data.Enums;
namespace MediaBrowser.Model.Library
@@ -14,10 +15,10 @@ namespace MediaBrowser.Model.Library
}
/// <summary>
/// Gets or sets the user identifier.
/// Gets or sets the user.
/// </summary>
/// <value>The user identifier.</value>
public Guid UserId { get; set; }
/// <value>The user.</value>
public required User User { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [include external content].

View File

@@ -2,6 +2,7 @@
#pragma warning disable CS1591
using System;
using Jellyfin.Data.Entities;
using Jellyfin.Data.Enums;
using MediaBrowser.Model.Entities;
@@ -18,7 +19,7 @@ namespace MediaBrowser.Model.Querying
/// Gets or sets the user to localize search results for.
/// </summary>
/// <value>The user id.</value>
public Guid UserId { get; set; }
public User User { get; set; }
/// <summary>
/// Gets or sets the parent id.

View File

@@ -1,7 +1,7 @@
#nullable disable
#pragma warning disable CS1591
using System;
using Jellyfin.Data.Entities;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Model.Querying
@@ -19,10 +19,10 @@ namespace MediaBrowser.Model.Querying
}
/// <summary>
/// Gets or sets the user id.
/// Gets or sets the user.
/// </summary>
/// <value>The user id.</value>
public Guid UserId { get; set; }
/// <value>The user.</value>
public required User User { get; set; }
/// <summary>
/// Gets or sets the parent identifier.
@@ -48,24 +48,6 @@ namespace MediaBrowser.Model.Querying
/// <value>The limit.</value>
public int? Limit { get; set; }
/// <summary>
/// gets or sets the fields to return within the items, in addition to basic information.
/// </summary>
/// <value>The fields.</value>
public ItemFields[] Fields { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [enable images].
/// </summary>
/// <value><c>null</c> if [enable images] contains no value, <c>true</c> if [enable images]; otherwise, <c>false</c>.</value>
public bool? EnableImages { get; set; }
/// <summary>
/// Gets or sets the image type limit.
/// </summary>
/// <value>The image type limit.</value>
public int? ImageTypeLimit { get; set; }
/// <summary>
/// Gets or sets the enable image types.
/// </summary>