UserConfiguration.cs 2.2 KB

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