mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 13:57:14 -04:00
* Convert CollectionType, SpecialFolderType to enum * Hide internal enum CollectionType values * Apply suggestions from code review Co-authored-by: Shadowghost <Shadowghost@users.noreply.github.com> * Fix recent change * Update Jellyfin.Data/Attributes/OpenApiIgnoreEnumAttribute.cs Co-authored-by: Patrick Barron <barronpm@gmail.com> --------- Co-authored-by: Shadowghost <Shadowghost@users.noreply.github.com> Co-authored-by: Patrick Barron <barronpm@gmail.com>
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
#pragma warning disable CS1591
|
|
|
|
using System;
|
|
using Jellyfin.Data.Enums;
|
|
|
|
namespace MediaBrowser.Model.Library
|
|
{
|
|
public class UserViewQuery
|
|
{
|
|
public UserViewQuery()
|
|
{
|
|
IncludeExternalContent = true;
|
|
PresetViews = Array.Empty<CollectionType?>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the user identifier.
|
|
/// </summary>
|
|
/// <value>The user identifier.</value>
|
|
public Guid UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether [include external content].
|
|
/// </summary>
|
|
/// <value><c>true</c> if [include external content]; otherwise, <c>false</c>.</value>
|
|
public bool IncludeExternalContent { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether [include hidden].
|
|
/// </summary>
|
|
/// <value><c>true</c> if [include hidden]; otherwise, <c>false</c>.</value>
|
|
public bool IncludeHidden { get; set; }
|
|
|
|
public CollectionType?[] PresetViews { get; set; }
|
|
}
|
|
}
|