2025-03-23 11:35:46 +00:00
|
|
|
namespace AIStudio.Tools.PluginSystem;
|
|
|
|
|
|
|
|
public sealed class PluginMetadata(PluginBase plugin) : IPluginMetadata
|
|
|
|
{
|
|
|
|
#region Implementation of IPluginMetadata
|
|
|
|
|
|
|
|
/// <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 />
|
2025-03-23 13:26:47 +00:00
|
|
|
public string DeprecationMessage { get; } = plugin.DeprecationMessage;
|
2025-03-23 11:35:46 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
}
|