24 lines
727 B
C#
24 lines
727 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Jellyfin.Plugin.JRay.Models;
|
|
|
|
/// <summary>
|
|
/// A selectable option for the config page's rule editor (a genre or a series),
|
|
/// pairing the value stored in a rule with a human-readable label.
|
|
/// </summary>
|
|
public class PickerOption
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the value stored in a <see cref="MediaPolicyRule"/>
|
|
/// (a genre name, or a series id).
|
|
/// </summary>
|
|
[JsonPropertyName("value")]
|
|
public string Value { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the label shown to the user (genre name, or series title).
|
|
/// </summary>
|
|
[JsonPropertyName("label")]
|
|
public string Label { get; set; } = string.Empty;
|
|
}
|