UserConfiguration.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 a value indicating whether this instance is administrator.
  11. /// </summary>
  12. /// <value><c>true</c> if this instance is administrator; otherwise, <c>false</c>.</value>
  13. public bool IsAdministrator { get; set; }
  14. /// <summary>
  15. /// Gets or sets the audio language preference.
  16. /// </summary>
  17. /// <value>The audio language preference.</value>
  18. public string AudioLanguagePreference { get; set; }
  19. /// <summary>
  20. /// Gets or sets a value indicating whether [play default audio track].
  21. /// </summary>
  22. /// <value><c>true</c> if [play default audio track]; otherwise, <c>false</c>.</value>
  23. public bool PlayDefaultAudioTrack { get; set; }
  24. /// <summary>
  25. /// Gets or sets the subtitle language preference.
  26. /// </summary>
  27. /// <value>The subtitle language preference.</value>
  28. public string SubtitleLanguagePreference { get; set; }
  29. public bool DisplayMissingEpisodes { get; set; }
  30. public bool DisplayUnairedEpisodes { get; set; }
  31. public bool EnableLiveTvManagement { get; set; }
  32. public bool EnableLiveTvAccess { get; set; }
  33. public bool EnableMediaPlayback { get; set; }
  34. public bool EnableContentDeletion { get; set; }
  35. public bool GroupMoviesIntoBoxSets { get; set; }
  36. public string[] DisplayChannelsWithinViews { get; set; }
  37. public string[] ExcludeFoldersFromGrouping { get; set; }
  38. public UnratedItem[] BlockUnratedItems { get; set; }
  39. public SubtitlePlaybackMode SubtitleMode { get; set; }
  40. public bool DisplayCollectionsView { get; set; }
  41. public bool DisplayFoldersView { get; set; }
  42. public bool EnableLocalPassword { get; set; }
  43. public string[] OrderedViews { get; set; }
  44. public bool IncludeTrailersInSuggestions { get; set; }
  45. public bool EnableCinemaMode { get; set; }
  46. public string[] LatestItemsExcludes { get; set; }
  47. public bool HasMigratedToPolicy { get; set; }
  48. /// <summary>
  49. /// Initializes a new instance of the <see cref="UserConfiguration" /> class.
  50. /// </summary>
  51. public UserConfiguration()
  52. {
  53. PlayDefaultAudioTrack = true;
  54. EnableLiveTvManagement = true;
  55. EnableMediaPlayback = true;
  56. EnableLiveTvAccess = true;
  57. LatestItemsExcludes = new string[] { };
  58. OrderedViews = new string[] { };
  59. DisplayChannelsWithinViews = new string[] { };
  60. BlockUnratedItems = new UnratedItem[] { };
  61. ExcludeFoldersFromGrouping = new string[] { };
  62. DisplayCollectionsView = true;
  63. IncludeTrailersInSuggestions = true;
  64. EnableCinemaMode = true;
  65. }
  66. }
  67. }