2020-04-05 09:10:56 -07:00
|
|
|
#nullable disable
|
2019-01-13 13:02:23 -07:00
|
|
|
using System.Collections.Generic;
|
2020-06-30 18:44:41 -07:00
|
|
|
using Jellyfin.Data.Enums;
|
2018-12-27 16:27:57 -07:00
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Entities
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-02-03 17:49:27 -07:00
|
|
|
/// Defines the display preferences for any item that supports them (usually Folders).
|
2018-12-27 16:27:57 -07:00
|
|
|
/// </summary>
|
2020-06-30 18:44:41 -07:00
|
|
|
public class DisplayPreferencesDto
|
2018-12-27 16:27:57 -07:00
|
|
|
{
|
|
|
|
/// <summary>
|
2020-06-30 18:44:41 -07:00
|
|
|
/// Initializes a new instance of the <see cref="DisplayPreferencesDto" /> class.
|
2018-12-27 16:27:57 -07:00
|
|
|
/// </summary>
|
2020-06-30 18:44:41 -07:00
|
|
|
public DisplayPreferencesDto()
|
2018-12-27 16:27:57 -07:00
|
|
|
{
|
|
|
|
RememberIndexing = false;
|
|
|
|
PrimaryImageHeight = 250;
|
|
|
|
PrimaryImageWidth = 250;
|
|
|
|
ShowBackdrop = true;
|
|
|
|
CustomPrefs = new Dictionary<string, string>();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the user id.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The user id.</value>
|
|
|
|
public string Id { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the type of the view.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The type of the view.</value>
|
|
|
|
public string ViewType { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the sort by.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The sort by.</value>
|
|
|
|
public string SortBy { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the index by.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The index by.</value>
|
|
|
|
public string IndexBy { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether [remember indexing].
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if [remember indexing]; otherwise, <c>false</c>.</value>
|
|
|
|
public bool RememberIndexing { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the height of the primary image.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The height of the primary image.</value>
|
|
|
|
public int PrimaryImageHeight { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the width of the primary image.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The width of the primary image.</value>
|
|
|
|
public int PrimaryImageWidth { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the custom prefs.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The custom prefs.</value>
|
|
|
|
public Dictionary<string, string> CustomPrefs { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the scroll direction.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The scroll direction.</value>
|
|
|
|
public ScrollDirection ScrollDirection { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether to show backdrops on this item.
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if showing backdrops; otherwise, <c>false</c>.</value>
|
|
|
|
public bool ShowBackdrop { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether [remember sorting].
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if [remember sorting]; otherwise, <c>false</c>.</value>
|
|
|
|
public bool RememberSorting { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the sort order.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The sort order.</value>
|
|
|
|
public SortOrder SortOrder { get; set; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether [show sidebar].
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if [show sidebar]; otherwise, <c>false</c>.</value>
|
|
|
|
public bool ShowSidebar { get; set; }
|
2020-03-24 08:12:06 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
2020-06-15 15:37:52 -07:00
|
|
|
/// Gets or sets the client.
|
2018-12-27 16:27:57 -07:00
|
|
|
/// </summary>
|
|
|
|
public string Client { get; set; }
|
|
|
|
}
|
|
|
|
}
|