jellyfin-server/MediaBrowser.Common/Plugins/IPlugin.cs

58 lines
1.4 KiB
C#
Raw Normal View History

using System;
using MediaBrowser.Model.Plugins;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Common.Plugins
{
/// <summary>
2020-12-06 23:48:54 +00:00
/// Defines the <see cref="IPlugin" />.
2018-12-27 23:27:57 +00:00
/// </summary>
public interface IPlugin
{
/// <summary>
2019-12-10 23:13:57 +00:00
/// Gets the name of the plugin.
2018-12-27 23:27:57 +00:00
/// </summary>
string Name { get; }
/// <summary>
2020-12-06 23:48:54 +00:00
/// Gets the Description.
2018-12-27 23:27:57 +00:00
/// </summary>
string Description { get; }
/// <summary>
/// Gets the unique id.
/// </summary>
Guid Id { get; }
/// <summary>
2019-12-10 23:13:57 +00:00
/// Gets the plugin version.
2018-12-27 23:27:57 +00:00
/// </summary>
Version Version { get; }
/// <summary>
2019-12-10 23:13:57 +00:00
/// Gets the path to the assembly file.
2018-12-27 23:27:57 +00:00
/// </summary>
string AssemblyFilePath { get; }
/// <summary>
/// Gets a value indicating whether the plugin can be uninstalled.
/// </summary>
bool CanUninstall { get; }
2018-12-27 23:27:57 +00:00
/// <summary>
2019-12-10 23:13:57 +00:00
/// Gets the full path to the data folder, where the plugin can store any miscellaneous files needed.
2018-12-27 23:27:57 +00:00
/// </summary>
string DataFolderPath { get; }
/// <summary>
2020-12-06 23:48:54 +00:00
/// Gets the <see cref="PluginInfo"/>.
2018-12-27 23:27:57 +00:00
/// </summary>
/// <returns>PluginInfo.</returns>
PluginInfo GetPluginInfo();
/// <summary>
/// Called when just before the plugin is uninstalled from the server.
/// </summary>
void OnUninstalling();
}
}