| | | 1 | | using System.Collections.Generic; |
| | | 2 | | using Jellyfin.Database.Implementations.Enums; |
| | | 3 | | |
| | | 4 | | namespace MediaBrowser.Model.Dto |
| | | 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 | | { |
| | 0 | 16 | | RememberIndexing = false; |
| | 0 | 17 | | PrimaryImageHeight = 250; |
| | 0 | 18 | | PrimaryImageWidth = 250; |
| | 0 | 19 | | ShowBackdrop = true; |
| | 0 | 20 | | CustomPrefs = new Dictionary<string, string?>(); |
| | 0 | 21 | | } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Gets or sets the user id. |
| | | 25 | | /// </summary> |
| | | 26 | | /// <value>The user id.</value> |
| | | 27 | | public string? Id { get; set; } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Gets or sets the type of the view. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <value>The type of the view.</value> |
| | | 33 | | public string? ViewType { get; set; } |
| | | 34 | | |
| | | 35 | | /// <summary> |
| | | 36 | | /// Gets or sets the sort by. |
| | | 37 | | /// </summary> |
| | | 38 | | /// <value>The sort by.</value> |
| | | 39 | | public string? SortBy { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// Gets or sets the index by. |
| | | 43 | | /// </summary> |
| | | 44 | | /// <value>The index by.</value> |
| | | 45 | | public string? IndexBy { get; set; } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// Gets or sets a value indicating whether [remember indexing]. |
| | | 49 | | /// </summary> |
| | | 50 | | /// <value><c>true</c> if [remember indexing]; otherwise, <c>false</c>.</value> |
| | | 51 | | public bool RememberIndexing { get; set; } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// Gets or sets the height of the primary image. |
| | | 55 | | /// </summary> |
| | | 56 | | /// <value>The height of the primary image.</value> |
| | | 57 | | public int PrimaryImageHeight { get; set; } |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// Gets or sets the width of the primary image. |
| | | 61 | | /// </summary> |
| | | 62 | | /// <value>The width of the primary image.</value> |
| | | 63 | | public int PrimaryImageWidth { get; set; } |
| | | 64 | | |
| | | 65 | | /// <summary> |
| | | 66 | | /// Gets or sets the custom prefs. |
| | | 67 | | /// </summary> |
| | | 68 | | /// <value>The custom prefs.</value> |
| | | 69 | | public Dictionary<string, string?> CustomPrefs { get; set; } |
| | | 70 | | |
| | | 71 | | /// <summary> |
| | | 72 | | /// Gets or sets the scroll direction. |
| | | 73 | | /// </summary> |
| | | 74 | | /// <value>The scroll direction.</value> |
| | | 75 | | public ScrollDirection ScrollDirection { get; set; } |
| | | 76 | | |
| | | 77 | | /// <summary> |
| | | 78 | | /// Gets or sets a value indicating whether to show backdrops on this item. |
| | | 79 | | /// </summary> |
| | | 80 | | /// <value><c>true</c> if showing backdrops; otherwise, <c>false</c>.</value> |
| | | 81 | | public bool ShowBackdrop { get; set; } |
| | | 82 | | |
| | | 83 | | /// <summary> |
| | | 84 | | /// Gets or sets a value indicating whether [remember sorting]. |
| | | 85 | | /// </summary> |
| | | 86 | | /// <value><c>true</c> if [remember sorting]; otherwise, <c>false</c>.</value> |
| | | 87 | | public bool RememberSorting { get; set; } |
| | | 88 | | |
| | | 89 | | /// <summary> |
| | | 90 | | /// Gets or sets the sort order. |
| | | 91 | | /// </summary> |
| | | 92 | | /// <value>The sort order.</value> |
| | | 93 | | public SortOrder SortOrder { get; set; } |
| | | 94 | | |
| | | 95 | | /// <summary> |
| | | 96 | | /// Gets or sets a value indicating whether [show sidebar]. |
| | | 97 | | /// </summary> |
| | | 98 | | /// <value><c>true</c> if [show sidebar]; otherwise, <c>false</c>.</value> |
| | | 99 | | public bool ShowSidebar { get; set; } |
| | | 100 | | |
| | | 101 | | /// <summary> |
| | | 102 | | /// Gets or sets the client. |
| | | 103 | | /// </summary> |
| | | 104 | | public string? Client { get; set; } |
| | | 105 | | } |
| | | 106 | | } |