mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Document DisplayPreferences.cs
This commit is contained in:
parent
ab396225ea
commit
e96a36512a
@ -6,8 +6,16 @@ using Jellyfin.Data.Enums;
|
|||||||
|
|
||||||
namespace Jellyfin.Data.Entities
|
namespace Jellyfin.Data.Entities
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An entity representing a user's display preferences.
|
||||||
|
/// </summary>
|
||||||
public class DisplayPreferences
|
public class DisplayPreferences
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="DisplayPreferences"/> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client">The client string.</param>
|
||||||
|
/// <param name="userId">The user's id.</param>
|
||||||
public DisplayPreferences(string client, Guid userId)
|
public DisplayPreferences(string client, Guid userId)
|
||||||
{
|
{
|
||||||
RememberIndexing = false;
|
RememberIndexing = false;
|
||||||
@ -18,14 +26,29 @@ namespace Jellyfin.Data.Entities
|
|||||||
HomeSections = new HashSet<HomeSection>();
|
HomeSections = new HashSet<HomeSection>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="DisplayPreferences"/> class.
|
||||||
|
/// </summary>
|
||||||
protected DisplayPreferences()
|
protected DisplayPreferences()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the Id.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Required.
|
||||||
|
/// </remarks>
|
||||||
[Required]
|
[Required]
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
public int Id { get; protected set; }
|
public int Id { get; protected set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the user Id.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Required.
|
||||||
|
/// </remarks>
|
||||||
[Required]
|
[Required]
|
||||||
public Guid UserId { get; set; }
|
public Guid UserId { get; set; }
|
||||||
|
|
||||||
@ -38,35 +61,89 @@ namespace Jellyfin.Data.Entities
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
public Guid? ItemId { get; set; }
|
public Guid? ItemId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the client string.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Required. Max Length = 64.
|
||||||
|
/// </remarks>
|
||||||
[Required]
|
[Required]
|
||||||
[MaxLength(64)]
|
[MaxLength(64)]
|
||||||
[StringLength(64)]
|
[StringLength(64)]
|
||||||
public string Client { get; set; }
|
public string Client { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets a value indicating whether the indexing should be remembered.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Required.
|
||||||
|
/// </remarks>
|
||||||
[Required]
|
[Required]
|
||||||
public bool RememberIndexing { get; set; }
|
public bool RememberIndexing { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets a value indicating whether the sorting type should be remembered.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Required.
|
||||||
|
/// </remarks>
|
||||||
[Required]
|
[Required]
|
||||||
public bool RememberSorting { get; set; }
|
public bool RememberSorting { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the sort order.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Required.
|
||||||
|
/// </remarks>
|
||||||
[Required]
|
[Required]
|
||||||
public SortOrder SortOrder { get; set; }
|
public SortOrder SortOrder { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets a value indicating whether to show the sidebar.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Required.
|
||||||
|
/// </remarks>
|
||||||
[Required]
|
[Required]
|
||||||
public bool ShowSidebar { get; set; }
|
public bool ShowSidebar { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets a value indicating whether to show the backdrop.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Required.
|
||||||
|
/// </remarks>
|
||||||
[Required]
|
[Required]
|
||||||
public bool ShowBackdrop { get; set; }
|
public bool ShowBackdrop { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets what the view should be sorted by.
|
||||||
|
/// </summary>
|
||||||
public string SortBy { get; set; }
|
public string SortBy { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the view type.
|
||||||
|
/// </summary>
|
||||||
public ViewType? ViewType { get; set; }
|
public ViewType? ViewType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the scroll direction.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Required.
|
||||||
|
/// </remarks>
|
||||||
[Required]
|
[Required]
|
||||||
public ScrollDirection ScrollDirection { get; set; }
|
public ScrollDirection ScrollDirection { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets what the view should be indexed by.
|
||||||
|
/// </summary>
|
||||||
public IndexingKind? IndexBy { get; set; }
|
public IndexingKind? IndexBy { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the home sections.
|
||||||
|
/// </summary>
|
||||||
public virtual ICollection<HomeSection> HomeSections { get; protected set; }
|
public virtual ICollection<HomeSection> HomeSections { get; protected set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user