UserConfiguration.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #pragma warning disable CS1591
  2. using System;
  3. using Jellyfin.Database.Implementations.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<Guid>();
  22. OrderedViews = Array.Empty<Guid>();
  23. MyMediaExcludes = Array.Empty<Guid>();
  24. GroupedFolders = Array.Empty<Guid>();
  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 Guid[] GroupedFolders { get; set; }
  43. public SubtitlePlaybackMode SubtitleMode { get; set; }
  44. public bool DisplayCollectionsView { get; set; }
  45. public bool EnableLocalPassword { get; set; }
  46. public Guid[] OrderedViews { get; set; }
  47. public Guid[] LatestItemsExcludes { get; set; }
  48. public Guid[] 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. /// <summary>
  54. /// Gets or sets the id of the selected cast receiver.
  55. /// </summary>
  56. public string? CastReceiverId { get; set; }
  57. }
  58. }