jellyfin/MediaBrowser.Model/Plugins/PluginInfo.cs

68 lines
2.1 KiB
C#
Raw Normal View History

2020-12-06 23:48:54 +00:00
using System;
namespace MediaBrowser.Model.Plugins
2018-12-27 23:27:57 +00:00
{
/// <summary>
/// This is a serializable stub class that is used by the api to provide information about installed plugins.
/// </summary>
public class PluginInfo
{
2020-12-06 23:48:54 +00:00
/// <summary>
/// Initializes a new instance of the <see cref="PluginInfo"/> class.
/// </summary>
/// <param name="name">The plugin name.</param>
/// <param name="version">The plugin <see cref="Version"/>.</param>
/// <param name="description">The plugin description.</param>
/// <param name="id">The <see cref="Guid"/>.</param>
/// <param name="canUninstall">True if this plugin can be uninstalled.</param>
public PluginInfo(string name, Version version, string description, Guid id, bool canUninstall)
{
Name = name;
2020-12-15 10:20:28 +00:00
Version = version;
2020-12-06 23:48:54 +00:00
Description = description;
2020-12-15 10:20:28 +00:00
Id = id;
2020-12-06 23:48:54 +00:00
CanUninstall = canUninstall;
}
2018-12-27 23:27:57 +00:00
/// <summary>
/// Gets or sets the name.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Gets or sets the version.
/// </summary>
2020-12-15 10:20:28 +00:00
public Version Version { get; set; }
2018-12-27 23:27:57 +00:00
/// <summary>
/// Gets or sets the name of the configuration file.
/// </summary>
2020-12-06 23:48:54 +00:00
public string? ConfigurationFileName { get; set; }
2018-12-27 23:27:57 +00:00
/// <summary>
/// Gets or sets the description.
/// </summary>
public string Description { get; set; }
/// <summary>
/// Gets or sets the unique id.
/// </summary>
2020-12-15 10:20:28 +00:00
public Guid Id { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the plugin can be uninstalled.
/// </summary>
public bool CanUninstall { get; set; }
2018-12-27 23:27:57 +00:00
/// <summary>
2020-12-06 23:48:54 +00:00
/// Gets or sets a value indicating whether this plugin has a valid image.
/// </summary>
public bool HasImage { get; set; }
/// <summary>
/// Gets or sets a value indicating the status of the plugin.
2018-12-27 23:27:57 +00:00
/// </summary>
2020-12-06 23:48:54 +00:00
public PluginStatus Status { get; set; }
2018-12-27 23:27:57 +00:00
}
}