2
0

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. /// Gets or sets the audio language preference.
  14. /// </summary>
  15. /// <value>The audio language preference.</value>
  16. public string AudioLanguagePreference { get; set; }
  17. /// <summary>
  18. /// Gets or sets a value indicating whether [play default audio track].
  19. /// </summary>
  20. /// <value><c>true</c> if [play default audio track]; otherwise, <c>false</c>.</value>
  21. public bool PlayDefaultAudioTrack { get; set; }
  22. /// <summary>
  23. /// Gets or sets the subtitle language preference.
  24. /// </summary>
  25. /// <value>The subtitle language preference.</value>
  26. public string SubtitleLanguagePreference { get; set; }
  27. public bool DisplayMissingEpisodes { get; set; }
  28. public string[] GroupedFolders { get; set; }
  29. public SubtitlePlaybackMode SubtitleMode { get; set; }
  30. public bool DisplayCollectionsView { get; set; }
  31. public bool EnableLocalPassword { get; set; }
  32. public string[] OrderedViews { get; set; }
  33. public string[] LatestItemsExcludes { get; set; }
  34. public string[] MyMediaExcludes { get; set; }
  35. public bool HidePlayedInLatest { get; set; }
  36. public bool RememberAudioSelections { get; set; }
  37. public bool RememberSubtitleSelections { get; set; }
  38. public bool EnableNextEpisodeAutoPlay { get; set; }
  39. /// <summary>
  40. /// Initializes a new instance of the <see cref="UserConfiguration" /> class.
  41. /// </summary>
  42. public UserConfiguration()
  43. {
  44. EnableNextEpisodeAutoPlay = true;
  45. RememberAudioSelections = true;
  46. RememberSubtitleSelections = true;
  47. HidePlayedInLatest = true;
  48. PlayDefaultAudioTrack = true;
  49. LatestItemsExcludes = Array.Empty<string>();
  50. OrderedViews = Array.Empty<string>();
  51. MyMediaExcludes = Array.Empty<string>();
  52. GroupedFolders = Array.Empty<string>();
  53. }
  54. }
  55. }