UserConfiguration.cs 2.2 KB

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