UserConfiguration.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 the subtitle language preference.
  26. /// </summary>
  27. /// <value>The subtitle language preference.</value>
  28. public string SubtitleLanguagePreference { get; set; }
  29. /// <summary>
  30. /// Gets or sets a value indicating whether [use forced subtitles only].
  31. /// </summary>
  32. /// <value><c>true</c> if [use forced subtitles only]; otherwise, <c>false</c>.</value>
  33. public bool UseForcedSubtitlesOnly { get; set; }
  34. /// <summary>
  35. /// Gets or sets a value indicating whether this instance is hidden.
  36. /// </summary>
  37. /// <value><c>true</c> if this instance is hidden; otherwise, <c>false</c>.</value>
  38. public bool IsHidden { get; set; }
  39. public bool IsDisabled { get; set; }
  40. public bool DisplayMissingEpisodes { get; set; }
  41. public bool DisplayUnairedEpisodes { get; set; }
  42. public bool EnableRemoteControlOfOtherUsers { get; set; }
  43. public bool EnableLiveTvManagement { get; set; }
  44. public bool EnableLiveTvAccess { get; set; }
  45. public bool EnableMediaPlayback { get; set; }
  46. public bool EnableContentDeletion { get; set; }
  47. public string[] BlockedMediaFolders { get; set; }
  48. public UnratedItem[] BlockUnratedItems { get; set; }
  49. /// <summary>
  50. /// Initializes a new instance of the <see cref="UserConfiguration" /> class.
  51. /// </summary>
  52. public UserConfiguration()
  53. {
  54. IsAdministrator = true;
  55. EnableRemoteControlOfOtherUsers = true;
  56. EnableContentDeletion = true;
  57. EnableLiveTvManagement = true;
  58. EnableMediaPlayback = true;
  59. EnableLiveTvAccess = true;
  60. BlockedMediaFolders = new string[] { };
  61. BlockUnratedItems = new UnratedItem[] { };
  62. }
  63. }
  64. public enum UnratedItem
  65. {
  66. Movie,
  67. Trailer,
  68. Series,
  69. Music,
  70. Game,
  71. Book,
  72. LiveTvChannel,
  73. LiveTvProgram,
  74. Other
  75. }
  76. }