UserConfiguration.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. 
  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 bool DisplayUnairedEpisodes { get; set; }
  26. public bool GroupMoviesIntoBoxSets { get; set; }
  27. public string[] DisplayChannelsWithinViews { get; set; }
  28. public string[] ExcludeFoldersFromGrouping { get; set; }
  29. public string[] GroupedFolders { get; set; }
  30. public SubtitlePlaybackMode SubtitleMode { get; set; }
  31. public bool DisplayCollectionsView { get; set; }
  32. public bool DisplayFoldersView { get; set; }
  33. public bool EnableLocalPassword { get; set; }
  34. public string[] OrderedViews { get; set; }
  35. public bool IncludeTrailersInSuggestions { get; set; }
  36. public bool EnableCinemaMode { get; set; }
  37. public string[] LatestItemsExcludes { get; set; }
  38. public string[] PlainFolderViews { get; set; }
  39. public bool HidePlayedInLatest { get; set; }
  40. public bool DisplayChannelsInline { get; set; }
  41. /// <summary>
  42. /// Initializes a new instance of the <see cref="UserConfiguration" /> class.
  43. /// </summary>
  44. public UserConfiguration()
  45. {
  46. HidePlayedInLatest = true;
  47. PlayDefaultAudioTrack = true;
  48. LatestItemsExcludes = new string[] { };
  49. OrderedViews = new string[] { };
  50. DisplayChannelsWithinViews = new string[] { };
  51. DisplayChannelsInline = true;
  52. PlainFolderViews = new string[] { };
  53. IncludeTrailersInSuggestions = true;
  54. EnableCinemaMode = true;
  55. GroupedFolders = new string[] { };
  56. }
  57. }
  58. }