UserConfiguration.cs 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 items with no rating information should be blocked.
  16. /// </summary>
  17. /// <value><c>true</c> if items with no rating info should be blocked; otherwise, <c>false</c>.</value>
  18. public bool BlockNotRated { get; set; }
  19. /// <summary>
  20. /// Gets or sets a value indicating whether [use custom library].
  21. /// </summary>
  22. /// <value><c>true</c> if [use custom library]; otherwise, <c>false</c>.</value>
  23. public bool UseCustomLibrary { get; set; }
  24. /// <summary>
  25. /// Gets or sets a value indicating whether this instance is administrator.
  26. /// </summary>
  27. /// <value><c>true</c> if this instance is administrator; otherwise, <c>false</c>.</value>
  28. public bool IsAdministrator { get; set; }
  29. /// <summary>
  30. /// Gets or sets the audio language preference.
  31. /// </summary>
  32. /// <value>The audio language preference.</value>
  33. public string AudioLanguagePreference { get; set; }
  34. /// <summary>
  35. /// Gets or sets the subtitle language preference.
  36. /// </summary>
  37. /// <value>The subtitle language preference.</value>
  38. public string SubtitleLanguagePreference { get; set; }
  39. /// <summary>
  40. /// Gets or sets a value indicating whether [use forced subtitles only].
  41. /// </summary>
  42. /// <value><c>true</c> if [use forced subtitles only]; otherwise, <c>false</c>.</value>
  43. public bool UseForcedSubtitlesOnly { get; set; }
  44. /// <summary>
  45. /// Gets or sets a value indicating whether this instance is hidden.
  46. /// </summary>
  47. /// <value><c>true</c> if this instance is hidden; otherwise, <c>false</c>.</value>
  48. public bool IsHidden { get; set; }
  49. public bool IsDisabled { get; set; }
  50. public bool DisplayMissingEpisodes { get; set; }
  51. public bool DisplayUnairedEpisodes { get; set; }
  52. public bool EnableRemoteControlOfOtherUsers { get; set; }
  53. public bool BlockUnratedMovies { get; set; }
  54. public bool BlockUnratedTrailers { get; set; }
  55. public bool BlockUnratedSeries { get; set; }
  56. public bool BlockUnratedMusic { get; set; }
  57. public bool BlockUnratedGames { get; set; }
  58. public bool BlockUnratedBooks { get; set; }
  59. /// <summary>
  60. /// Initializes a new instance of the <see cref="UserConfiguration" /> class.
  61. /// </summary>
  62. public UserConfiguration()
  63. {
  64. IsAdministrator = true;
  65. EnableRemoteControlOfOtherUsers = true;
  66. BlockNotRated = false;
  67. }
  68. }
  69. }