2
0

DisplayPreferencesDto.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #nullable disable
  2. using System.Collections.Generic;
  3. using Jellyfin.Data.Enums;
  4. namespace MediaBrowser.Model.Entities
  5. {
  6. /// <summary>
  7. /// Defines the display preferences for any item that supports them (usually Folders).
  8. /// </summary>
  9. public class DisplayPreferencesDto
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="DisplayPreferencesDto" /> class.
  13. /// </summary>
  14. public DisplayPreferencesDto()
  15. {
  16. RememberIndexing = false;
  17. PrimaryImageHeight = 250;
  18. PrimaryImageWidth = 250;
  19. ShowBackdrop = true;
  20. CustomPrefs = new Dictionary<string, string>();
  21. }
  22. /// <summary>
  23. /// Gets or sets the user id.
  24. /// </summary>
  25. /// <value>The user id.</value>
  26. public string Id { get; set; }
  27. /// <summary>
  28. /// Gets or sets the type of the view.
  29. /// </summary>
  30. /// <value>The type of the view.</value>
  31. public string ViewType { get; set; }
  32. /// <summary>
  33. /// Gets or sets the sort by.
  34. /// </summary>
  35. /// <value>The sort by.</value>
  36. public string SortBy { get; set; }
  37. /// <summary>
  38. /// Gets or sets the index by.
  39. /// </summary>
  40. /// <value>The index by.</value>
  41. public string IndexBy { get; set; }
  42. /// <summary>
  43. /// Gets or sets a value indicating whether [remember indexing].
  44. /// </summary>
  45. /// <value><c>true</c> if [remember indexing]; otherwise, <c>false</c>.</value>
  46. public bool RememberIndexing { get; set; }
  47. /// <summary>
  48. /// Gets or sets the height of the primary image.
  49. /// </summary>
  50. /// <value>The height of the primary image.</value>
  51. public int PrimaryImageHeight { get; set; }
  52. /// <summary>
  53. /// Gets or sets the width of the primary image.
  54. /// </summary>
  55. /// <value>The width of the primary image.</value>
  56. public int PrimaryImageWidth { get; set; }
  57. /// <summary>
  58. /// Gets or sets the custom prefs.
  59. /// </summary>
  60. /// <value>The custom prefs.</value>
  61. public Dictionary<string, string> CustomPrefs { get; set; }
  62. /// <summary>
  63. /// Gets or sets the scroll direction.
  64. /// </summary>
  65. /// <value>The scroll direction.</value>
  66. public ScrollDirection ScrollDirection { get; set; }
  67. /// <summary>
  68. /// Gets or sets a value indicating whether to show backdrops on this item.
  69. /// </summary>
  70. /// <value><c>true</c> if showing backdrops; otherwise, <c>false</c>.</value>
  71. public bool ShowBackdrop { get; set; }
  72. /// <summary>
  73. /// Gets or sets a value indicating whether [remember sorting].
  74. /// </summary>
  75. /// <value><c>true</c> if [remember sorting]; otherwise, <c>false</c>.</value>
  76. public bool RememberSorting { get; set; }
  77. /// <summary>
  78. /// Gets or sets the sort order.
  79. /// </summary>
  80. /// <value>The sort order.</value>
  81. public SortOrder SortOrder { get; set; }
  82. /// <summary>
  83. /// Gets or sets a value indicating whether [show sidebar].
  84. /// </summary>
  85. /// <value><c>true</c> if [show sidebar]; otherwise, <c>false</c>.</value>
  86. public bool ShowSidebar { get; set; }
  87. /// <summary>
  88. /// Gets or sets the client.
  89. /// </summary>
  90. public string Client { get; set; }
  91. }
  92. }