UserConfiguration.cs 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 max parental rating.
  11. /// </summary>
  12. /// <value>The max parental rating.</value>
  13. public int? MaxParentalRating { get; set; }
  14. /// <summary>
  15. /// Gets or sets a value indicating whether this instance is administrator.
  16. /// </summary>
  17. /// <value><c>true</c> if this instance is administrator; otherwise, <c>false</c>.</value>
  18. public bool IsAdministrator { get; set; }
  19. /// <summary>
  20. /// Gets or sets the audio language preference.
  21. /// </summary>
  22. /// <value>The audio language preference.</value>
  23. public string AudioLanguagePreference { get; set; }
  24. /// <summary>
  25. /// Gets or sets a value indicating whether [play default audio track].
  26. /// </summary>
  27. /// <value><c>true</c> if [play default audio track]; otherwise, <c>false</c>.</value>
  28. public bool PlayDefaultAudioTrack { get; set; }
  29. /// <summary>
  30. /// Gets or sets the subtitle language preference.
  31. /// </summary>
  32. /// <value>The subtitle language preference.</value>
  33. public string SubtitleLanguagePreference { get; set; }
  34. /// <summary>
  35. /// Gets or sets a value indicating whether [use forced subtitles only].
  36. /// </summary>
  37. /// <value><c>true</c> if [use forced subtitles only]; otherwise, <c>false</c>.</value>
  38. public bool UseForcedSubtitlesOnly { get; set; }
  39. /// <summary>
  40. /// Gets or sets a value indicating whether this instance is hidden.
  41. /// </summary>
  42. /// <value><c>true</c> if this instance is hidden; otherwise, <c>false</c>.</value>
  43. public bool IsHidden { get; set; }
  44. public bool IsDisabled { get; set; }
  45. public bool DisplayMissingEpisodes { get; set; }
  46. public bool DisplayUnairedEpisodes { get; set; }
  47. public bool EnableRemoteControlOfOtherUsers { get; set; }
  48. public bool EnableLiveTvManagement { get; set; }
  49. public bool EnableLiveTvAccess { get; set; }
  50. public bool EnableMediaPlayback { get; set; }
  51. public bool EnableContentDeletion { get; set; }
  52. public bool GroupMoviesIntoBoxSets { get; set; }
  53. public string[] BlockedMediaFolders { get; set; }
  54. public string[] BlockedChannels { get; set; }
  55. public string[] ExcludeFoldersFromGrouping { get; set; }
  56. public UnratedItem[] BlockUnratedItems { get; set; }
  57. public SubtitlePlaybackMode SubtitleMode { get; set; }
  58. /// <summary>
  59. /// Initializes a new instance of the <see cref="UserConfiguration" /> class.
  60. /// </summary>
  61. public UserConfiguration()
  62. {
  63. IsAdministrator = true;
  64. PlayDefaultAudioTrack = true;
  65. EnableRemoteControlOfOtherUsers = true;
  66. EnableLiveTvManagement = true;
  67. EnableMediaPlayback = true;
  68. EnableLiveTvAccess = true;
  69. BlockedMediaFolders = new string[] { };
  70. BlockedChannels = new string[] { };
  71. BlockUnratedItems = new UnratedItem[] { };
  72. ExcludeFoldersFromGrouping = new string[] { };
  73. }
  74. }
  75. }