Files
AI-Studio/app/MindWork AI Studio/Tools/PluginSystem/PluginMetadata.cs
T

63 lines
1.8 KiB
C#
Raw Normal View History

2025-03-29 18:40:17 +01:00
namespace AIStudio.Tools.PluginSystem;
public sealed class PluginMetadata(PluginBase plugin, string localPath, bool isManagedByConfigServer = false, Guid? managedConfigurationId = null, int configurationPriority = 0) : IAvailablePlugin
2025-03-29 18:40:17 +01:00
{
#region Implementation of IPluginMetadata
/// <inheritdoc />
2026-08-25 12:46:10 +02:00
public string IconDataUrl { get; } = plugin.IconDataUrl;
2025-03-29 18:40:17 +01:00
/// <inheritdoc />
public PluginType Type { get; } = plugin.Type;
/// <inheritdoc />
public Guid Id { get; } = plugin.Id;
/// <inheritdoc />
public string Name { get; } = plugin.Name;
/// <inheritdoc />
public string Description { get; } = plugin.Description;
/// <inheritdoc />
public PluginVersion Version { get; } = plugin.Version;
/// <inheritdoc />
public string[] Authors { get; } = plugin.Authors;
/// <inheritdoc />
public string SupportContact { get; } = plugin.SupportContact;
/// <inheritdoc />
public string SourceURL { get; } = plugin.SourceURL;
/// <inheritdoc />
public PluginCategory[] Categories { get; } = plugin.Categories;
/// <inheritdoc />
public PluginTargetGroup[] TargetGroups { get; } = plugin.TargetGroups;
/// <inheritdoc />
public bool IsMaintained { get; } = plugin.IsMaintained;
/// <inheritdoc />
public string DeprecationMessage { get; } = plugin.DeprecationMessage;
/// <inheritdoc />
public bool IsInternal { get; } = plugin.IsInternal;
#endregion
#region Implementation of IAvailablePlugin
public string LocalPath { get; } = localPath;
2026-02-19 20:43:47 +01:00
public bool IsManagedByConfigServer { get; } = isManagedByConfigServer;
2026-02-19 20:43:47 +01:00
public Guid? ManagedConfigurationId { get; } = managedConfigurationId;
/// <inheritdoc />
public int ConfigurationPriority { get; } = configurationPriority;
#endregion
2026-02-19 20:43:47 +01:00
}