< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Updates.PackageInfo
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Updates/PackageInfo.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 83
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/Updates/PackageInfo.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Text.Json.Serialization;
 4
 5namespace MediaBrowser.Model.Updates
 6{
 7    /// <summary>
 8    /// Class PackageInfo.
 9    /// </summary>
 10    public class PackageInfo
 11    {
 12        /// <summary>
 13        /// Initializes a new instance of the <see cref="PackageInfo"/> class.
 14        /// </summary>
 15        public PackageInfo()
 16        {
 7917            Versions = Array.Empty<VersionInfo>();
 7918            Category = string.Empty;
 7919            Name = string.Empty;
 7920            Overview = string.Empty;
 7921            Owner = string.Empty;
 7922            Description = string.Empty;
 7923        }
 24
 25        /// <summary>
 26        /// Gets or sets the name.
 27        /// </summary>
 28        /// <value>The name.</value>
 29        [JsonPropertyName("name")]
 30        public string Name { get; set; }
 31
 32        /// <summary>
 33        /// Gets or sets a long description of the plugin containing features or helpful explanations.
 34        /// </summary>
 35        /// <value>The description.</value>
 36        [JsonPropertyName("description")]
 37        public string Description { get; set; }
 38
 39        /// <summary>
 40        /// Gets or sets a short overview of what the plugin does.
 41        /// </summary>
 42        /// <value>The overview.</value>
 43        [JsonPropertyName("overview")]
 44        public string Overview { get; set; }
 45
 46        /// <summary>
 47        /// Gets or sets the owner.
 48        /// </summary>
 49        /// <value>The owner.</value>
 50        [JsonPropertyName("owner")]
 51        public string Owner { get; set; }
 52
 53        /// <summary>
 54        /// Gets or sets the category.
 55        /// </summary>
 56        /// <value>The category.</value>
 57        [JsonPropertyName("category")]
 58        public string Category { get; set; }
 59
 60        /// <summary>
 61        /// Gets or sets the guid of the assembly associated with this plugin.
 62        /// This is used to identify the proper item for automatic updates.
 63        /// </summary>
 64        /// <value>The name.</value>
 65        [JsonPropertyName("guid")]
 66        public Guid Id { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets the versions.
 70        /// </summary>
 71        /// <value>The versions.</value>
 72        [JsonPropertyName("versions")]
 73#pragma warning disable CA2227 // Collection properties should be read only
 74        public IList<VersionInfo> Versions { get; set; }
 75#pragma warning restore CA2227 // Collection properties should be read only
 76
 77        /// <summary>
 78        /// Gets or sets the image url for the package.
 79        /// </summary>
 80        [JsonPropertyName("imageUrl")]
 81        public string? ImageUrl { get; set; }
 82    }
 83}

Methods/Properties

.ctor()