| | | 1 | | using System; |
| | | 2 | | |
| | | 3 | | namespace MediaBrowser.Model.Plugins |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// This is a serializable stub class that is used by the api to provide information about installed plugins. |
| | | 7 | | /// </summary> |
| | | 8 | | public class PluginInfo |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Initializes a new instance of the <see cref="PluginInfo"/> class. |
| | | 12 | | /// </summary> |
| | | 13 | | /// <param name="name">The plugin name.</param> |
| | | 14 | | /// <param name="version">The plugin <see cref="Version"/>.</param> |
| | | 15 | | /// <param name="description">The plugin description.</param> |
| | | 16 | | /// <param name="id">The <see cref="Guid"/>.</param> |
| | | 17 | | /// <param name="canUninstall">True if this plugin can be uninstalled.</param> |
| | | 18 | | public PluginInfo(string name, Version version, string description, Guid id, bool canUninstall) |
| | | 19 | | { |
| | 14 | 20 | | Name = name; |
| | 14 | 21 | | Version = version; |
| | 14 | 22 | | Description = description; |
| | 14 | 23 | | Id = id; |
| | 14 | 24 | | CanUninstall = canUninstall; |
| | 14 | 25 | | } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Gets or sets the name. |
| | | 29 | | /// </summary> |
| | | 30 | | public string Name { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Gets or sets the version. |
| | | 34 | | /// </summary> |
| | | 35 | | public Version Version { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// Gets or sets the name of the configuration file. |
| | | 39 | | /// </summary> |
| | | 40 | | public string? ConfigurationFileName { get; set; } |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// Gets or sets the description. |
| | | 44 | | /// </summary> |
| | | 45 | | public string Description { get; set; } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// Gets or sets the unique id. |
| | | 49 | | /// </summary> |
| | | 50 | | public Guid Id { get; set; } |
| | | 51 | | |
| | | 52 | | /// <summary> |
| | | 53 | | /// Gets or sets a value indicating whether the plugin can be uninstalled. |
| | | 54 | | /// </summary> |
| | | 55 | | public bool CanUninstall { get; set; } |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// Gets or sets a value indicating whether this plugin has a valid image. |
| | | 59 | | /// </summary> |
| | | 60 | | public bool HasImage { get; set; } |
| | | 61 | | |
| | | 62 | | /// <summary> |
| | | 63 | | /// Gets or sets a value indicating the status of the plugin. |
| | | 64 | | /// </summary> |
| | | 65 | | public PluginStatus Status { get; set; } |
| | | 66 | | } |
| | | 67 | | } |