mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-10 19:13:03 +03:00
Used enum value for ItemValueType
This commit is contained in:
@@ -23,7 +23,7 @@ public class ItemValue
|
||||
/// <summary>
|
||||
/// Gets or Sets the Type.
|
||||
/// </summary>
|
||||
public required int Type { get; set; }
|
||||
public required ItemValueType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the Value.
|
||||
|
||||
41
Jellyfin.Data/Entities/ItemValueType.cs
Normal file
41
Jellyfin.Data/Entities/ItemValueType.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
namespace Jellyfin.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Provides the Value types for an <see cref="ItemValue"/>.
|
||||
/// </summary>
|
||||
#pragma warning disable CA1027 // Mark enums with FlagsAttribute
|
||||
public enum ItemValueType
|
||||
#pragma warning restore CA1027 // Mark enums with FlagsAttribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Artists.
|
||||
/// </summary>
|
||||
#pragma warning disable CA1008 // Enums should have zero value. Cannot apply here.
|
||||
Artist = 0,
|
||||
#pragma warning restore CA1008 // Enums should have zero value
|
||||
|
||||
/// <summary>
|
||||
/// Album.
|
||||
/// </summary>
|
||||
AlbumArtist = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Genre.
|
||||
/// </summary>
|
||||
Genre = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Studios.
|
||||
/// </summary>
|
||||
Studios = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Tags.
|
||||
/// </summary>
|
||||
Tags = 4,
|
||||
|
||||
/// <summary>
|
||||
/// InheritedTags.
|
||||
/// </summary>
|
||||
InheritedTags = 6,
|
||||
}
|
||||
Reference in New Issue
Block a user