< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Plugins.PluginInfo
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Plugins/PluginInfo.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 67
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/srv/git/jellyfin/MediaBrowser.Model/Plugins/PluginInfo.cs

#LineLine coverage
 1using System;
 2
 3namespace 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        {
 1420            Name = name;
 1421            Version = version;
 1422            Description = description;
 1423            Id = id;
 1424            CanUninstall = canUninstall;
 1425        }
 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}