UserConfiguration.cs 2.2 KB

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