UserViewQuery.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma warning disable CS1591
  2. using System;
  3. using Jellyfin.Data.Enums;
  4. using Jellyfin.Database.Implementations.Entities;
  5. namespace MediaBrowser.Model.Library
  6. {
  7. public class UserViewQuery
  8. {
  9. public UserViewQuery()
  10. {
  11. IncludeExternalContent = true;
  12. PresetViews = Array.Empty<CollectionType?>();
  13. }
  14. /// <summary>
  15. /// Gets or sets the user.
  16. /// </summary>
  17. /// <value>The user.</value>
  18. public required User User { get; set; }
  19. /// <summary>
  20. /// Gets or sets a value indicating whether [include external content].
  21. /// </summary>
  22. /// <value><c>true</c> if [include external content]; otherwise, <c>false</c>.</value>
  23. public bool IncludeExternalContent { get; set; }
  24. /// <summary>
  25. /// Gets or sets a value indicating whether [include hidden].
  26. /// </summary>
  27. /// <value><c>true</c> if [include hidden]; otherwise, <c>false</c>.</value>
  28. public bool IncludeHidden { get; set; }
  29. public CollectionType?[] PresetViews { get; set; }
  30. }
  31. }