UserConfiguration.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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[] DisplayChannelsWithinViews { get; set; }
  56. public string[] ExcludeFoldersFromGrouping { get; set; }
  57. public UnratedItem[] BlockUnratedItems { get; set; }
  58. public SubtitlePlaybackMode SubtitleMode { get; set; }
  59. public bool DisplayCollectionsView { get; set; }
  60. public bool DisplayFoldersView { get; set; }
  61. public bool EnableLocalPassword { get; set; }
  62. public string[] OrderedViews { get; set; }
  63. public bool SyncConnectName { get; set; }
  64. public bool SyncConnectImage { get; set; }
  65. /// <summary>
  66. /// Initializes a new instance of the <see cref="UserConfiguration" /> class.
  67. /// </summary>
  68. public UserConfiguration()
  69. {
  70. PlayDefaultAudioTrack = true;
  71. EnableRemoteControlOfOtherUsers = true;
  72. EnableLiveTvManagement = true;
  73. EnableMediaPlayback = true;
  74. EnableLiveTvAccess = true;
  75. OrderedViews = new string[] { };
  76. BlockedMediaFolders = new string[] { };
  77. DisplayChannelsWithinViews = new string[] { };
  78. BlockedChannels = new string[] { };
  79. BlockUnratedItems = new UnratedItem[] { };
  80. ExcludeFoldersFromGrouping = new string[] { };
  81. DisplayCollectionsView = true;
  82. DisplayFoldersView = true;
  83. SyncConnectName = true;
  84. SyncConnectImage = true;
  85. }
  86. }
  87. }