UserConfiguration.cs 2.2 KB

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