aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/DisplayPreferences.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Data/Entities/DisplayPreferences.cs')
-rw-r--r--Jellyfin.Data/Entities/DisplayPreferences.cs65
1 files changed, 12 insertions, 53 deletions
diff --git a/Jellyfin.Data/Entities/DisplayPreferences.cs b/Jellyfin.Data/Entities/DisplayPreferences.cs
index bcb872db3..44b70d970 100644
--- a/Jellyfin.Data/Entities/DisplayPreferences.cs
+++ b/Jellyfin.Data/Entities/DisplayPreferences.cs
@@ -14,14 +14,18 @@ namespace Jellyfin.Data.Entities
/// <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)
+ /// <param name="client">The client string.</param>
+ public DisplayPreferences(Guid userId, string client)
{
- RememberIndexing = false;
- ShowBackdrop = true;
- Client = client;
UserId = userId;
+ Client = client;
+ ShowSidebar = false;
+ ShowBackdrop = true;
+ SkipForwardLength = 30000;
+ SkipBackwardLength = 10000;
+ ScrollDirection = ScrollDirection.Horizontal;
+ ChromecastVersion = ChromecastVersion.Stable;
HomeSections = new HashSet<HomeSection>();
}
@@ -51,50 +55,17 @@ namespace Jellyfin.Data.Entities
public Guid UserId { get; set; }
/// <summary>
- /// Gets or sets the id of the associated item.
- /// </summary>
- /// <remarks>
- /// This is currently unused. In the future, this will allow us to have users set
- /// display preferences per item.
- /// </remarks>
- public Guid? ItemId { get; set; }
-
- /// <summary>
/// Gets or sets the client string.
/// </summary>
/// <remarks>
- /// Required. Max Length = 64.
+ /// Required. Max Length = 32.
/// </remarks>
[Required]
- [MaxLength(64)]
- [StringLength(64)]
+ [MaxLength(32)]
+ [StringLength(32)]
public string Client { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether the indexing should be remembered.
- /// </summary>
- /// <remarks>
- /// Required.
- /// </remarks>
- public bool RememberIndexing { get; set; }
-
- /// <summary>
- /// Gets or sets a value indicating whether the sorting type should be remembered.
- /// </summary>
- /// <remarks>
- /// Required.
- /// </remarks>
- public bool RememberSorting { get; set; }
-
- /// <summary>
- /// Gets or sets the sort order.
- /// </summary>
- /// <remarks>
- /// Required.
- /// </remarks>
- public SortOrder SortOrder { get; set; }
-
- /// <summary>
/// Gets or sets a value indicating whether to show the sidebar.
/// </summary>
/// <remarks>
@@ -111,18 +82,6 @@ namespace Jellyfin.Data.Entities
public bool ShowBackdrop { get; set; }
/// <summary>
- /// Gets or sets what the view should be sorted by.
- /// </summary>
- [MaxLength(64)]
- [StringLength(64)]
- public string SortBy { get; set; }
-
- /// <summary>
- /// Gets or sets the view type.
- /// </summary>
- public ViewType? ViewType { get; set; }
-
- /// <summary>
/// Gets or sets the scroll direction.
/// </summary>
/// <remarks>