mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-19 23:35:25 +03:00
Convert CollectionType, SpecialFolderType to enum (#9764)
* 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>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using Jellyfin.Data.Enums;
|
||||
|
||||
namespace MediaBrowser.Model.Library
|
||||
{
|
||||
@@ -9,7 +10,7 @@ namespace MediaBrowser.Model.Library
|
||||
public UserViewQuery()
|
||||
{
|
||||
IncludeExternalContent = true;
|
||||
PresetViews = Array.Empty<string>();
|
||||
PresetViews = Array.Empty<CollectionType?>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -30,6 +31,6 @@ namespace MediaBrowser.Model.Library
|
||||
/// <value><c>true</c> if [include hidden]; otherwise, <c>false</c>.</value>
|
||||
public bool IncludeHidden { get; set; }
|
||||
|
||||
public string[] PresetViews { get; set; }
|
||||
public CollectionType?[] PresetViews { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user