mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
Moves metadata provider, artwork provider, and book reader choices into the add and update library requests, adds the library type lookups, removes the per-provider enable and reorder endpoints, and reconciles the stored configurations in one provider store call. Tightens library update and delete authorization to require ownership and the manage permission, and cleans up enum validation, comments, resource diacritics, and Razor imports.
20 lines
1.2 KiB
C#
20 lines
1.2 KiB
C#
#region ========================================================================= USING =====================================================================================
|
|
using System;
|
|
#endregion
|
|
|
|
namespace Lumina.Contracts.Responses.Plugins;
|
|
|
|
/// <summary>
|
|
/// Represents a metadata provider, either as configured for a media library, or as available for a library type, the way a new library of that type starts.
|
|
/// </summary>
|
|
/// <param name="PluginId">The unique identifier of the plugin providing the metadata.</param>
|
|
/// <param name="Name">The display name of the metadata provider.</param>
|
|
/// <param name="IsEnabled">Whether the metadata provider is enabled for the media library. Always <see langword="false"/> for a provider available for a library type, since a new provider starts disabled.</param>
|
|
/// <param name="Rank">The rank of the metadata provider, determining the order in which providers are tried. For a provider available for a library type, it is the rank a new library starts with, in alphabetical order of the plugin names.</param>
|
|
public sealed record LibraryMetadataProviderResponse(
|
|
Guid PluginId,
|
|
string Name,
|
|
bool IsEnabled,
|
|
int Rank
|
|
);
|