UserConfiguration.cs 2.5 KB

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