UserConfiguration.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using Jellyfin.Data.Enums;
  5. namespace MediaBrowser.Model.Configuration
  6. {
  7. /// <summary>
  8. /// Class UserConfiguration.
  9. /// </summary>
  10. public class UserConfiguration
  11. {
  12. /// <summary>
  13. /// Initializes a new instance of the <see cref="UserConfiguration" /> class.
  14. /// </summary>
  15. public UserConfiguration()
  16. {
  17. EnableNextEpisodeAutoPlay = true;
  18. RememberAudioSelections = true;
  19. RememberSubtitleSelections = true;
  20. HidePlayedInLatest = true;
  21. PlayDefaultAudioTrack = true;
  22. LatestItemsExcludes = Array.Empty<string>();
  23. OrderedViews = Array.Empty<string>();
  24. MyMediaExcludes = Array.Empty<string>();
  25. GroupedFolders = Array.Empty<string>();
  26. }
  27. /// <summary>
  28. /// Gets or sets the audio language preference.
  29. /// </summary>
  30. /// <value>The audio language preference.</value>
  31. public string AudioLanguagePreference { get; set; }
  32. /// <summary>
  33. /// Gets or sets a value indicating whether [play default audio track].
  34. /// </summary>
  35. /// <value><c>true</c> if [play default audio track]; otherwise, <c>false</c>.</value>
  36. public bool PlayDefaultAudioTrack { get; set; }
  37. /// <summary>
  38. /// Gets or sets the subtitle language preference.
  39. /// </summary>
  40. /// <value>The subtitle language preference.</value>
  41. public string SubtitleLanguagePreference { get; set; }
  42. public bool DisplayMissingEpisodes { get; set; }
  43. public string[] GroupedFolders { get; set; }
  44. public SubtitlePlaybackMode SubtitleMode { get; set; }
  45. public bool DisplayCollectionsView { get; set; }
  46. public bool EnableLocalPassword { get; set; }
  47. public string[] OrderedViews { get; set; }
  48. public string[] LatestItemsExcludes { get; set; }
  49. public string[] MyMediaExcludes { get; set; }
  50. public bool HidePlayedInLatest { get; set; }
  51. public bool RememberAudioSelections { get; set; }
  52. public bool RememberSubtitleSelections { get; set; }
  53. public bool EnableNextEpisodeAutoPlay { get; set; }
  54. }
  55. }