< Summary - Jellyfin

Information
Class: MediaBrowser.Model.System.SystemInfo
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/System/SystemInfo.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 138
Line coverage: 0%
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%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Model/System/SystemInfo.cs

#LineLine coverage
 1#nullable disable
 2#pragma warning disable CS1591
 3
 4using System;
 5using System.Collections.Generic;
 6using System.ComponentModel;
 7using MediaBrowser.Model.Updates;
 8
 9namespace MediaBrowser.Model.System
 10{
 11    /// <summary>
 12    /// Class SystemInfo.
 13    /// </summary>
 14    public class SystemInfo : PublicSystemInfo
 15    {
 16        /// <summary>
 17        /// Initializes a new instance of the <see cref="SystemInfo" /> class.
 18        /// </summary>
 019        public SystemInfo()
 20        {
 021            CompletedInstallations = Array.Empty<InstallationInfo>();
 022        }
 23
 24        /// <summary>
 25        /// Gets or sets the display name of the operating system.
 26        /// </summary>
 27        /// <value>The display name of the operating system.</value>
 28        [Obsolete("This is no longer set")]
 29        public string OperatingSystemDisplayName { get; set; } = string.Empty;
 30
 31        /// <summary>
 32        /// Gets or sets the package name.
 33        /// </summary>
 34        /// <value>The value of the '-package' command line argument.</value>
 35        public string PackageName { get; set; }
 36
 37        /// <summary>
 38        /// Gets or sets a value indicating whether this instance has pending restart.
 39        /// </summary>
 40        /// <value><c>true</c> if this instance has pending restart; otherwise, <c>false</c>.</value>
 41        public bool HasPendingRestart { get; set; }
 42
 43        public bool IsShuttingDown { get; set; }
 44
 45        /// <summary>
 46        /// Gets or sets a value indicating whether [supports library monitor].
 47        /// </summary>
 48        /// <value><c>true</c> if [supports library monitor]; otherwise, <c>false</c>.</value>
 49        public bool SupportsLibraryMonitor { get; set; }
 50
 51        /// <summary>
 52        /// Gets or sets the web socket port number.
 53        /// </summary>
 54        /// <value>The web socket port number.</value>
 55        public int WebSocketPortNumber { get; set; }
 56
 57        /// <summary>
 58        /// Gets or sets the completed installations.
 59        /// </summary>
 60        /// <value>The completed installations.</value>
 61        public InstallationInfo[] CompletedInstallations { get; set; }
 62
 63        /// <summary>
 64        /// Gets or sets a value indicating whether this instance can self restart.
 65        /// </summary>
 66        /// <value><c>true</c>.</value>
 67        [Obsolete("This is always true")]
 68        [DefaultValue(true)]
 69        public bool CanSelfRestart { get; set; } = true;
 70
 71        [Obsolete("This is always false")]
 72        [DefaultValue(false)]
 73        public bool CanLaunchWebBrowser { get; set; } = false;
 74
 75        /// <summary>
 76        /// Gets or sets the program data path.
 77        /// </summary>
 78        /// <value>The program data path.</value>
 79        public string ProgramDataPath { get; set; }
 80
 81        /// <summary>
 82        /// Gets or sets the web UI resources path.
 83        /// </summary>
 84        /// <value>The web UI resources path.</value>
 85        public string WebPath { get; set; }
 86
 87        /// <summary>
 88        /// Gets or sets the items by name path.
 89        /// </summary>
 90        /// <value>The items by name path.</value>
 91        public string ItemsByNamePath { get; set; }
 92
 93        /// <summary>
 94        /// Gets or sets the cache path.
 95        /// </summary>
 96        /// <value>The cache path.</value>
 97        public string CachePath { get; set; }
 98
 99        /// <summary>
 100        /// Gets or sets the log path.
 101        /// </summary>
 102        /// <value>The log path.</value>
 103        public string LogPath { get; set; }
 104
 105        /// <summary>
 106        /// Gets or sets the internal metadata path.
 107        /// </summary>
 108        /// <value>The internal metadata path.</value>
 109        public string InternalMetadataPath { get; set; }
 110
 111        /// <summary>
 112        /// Gets or sets the transcode path.
 113        /// </summary>
 114        /// <value>The transcode path.</value>
 115        public string TranscodingTempPath { get; set; }
 116
 117        /// <summary>
 118        /// Gets or sets the list of cast receiver applications.
 119        /// </summary>
 120        public IReadOnlyList<CastReceiverApplication> CastReceiverApplications { get; set; }
 121
 122        /// <summary>
 123        /// Gets or sets a value indicating whether this instance has update available.
 124        /// </summary>
 125        /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
 126        [Obsolete("This should be handled by the package manager")]
 127        [DefaultValue(false)]
 128        public bool HasUpdateAvailable { get; set; }
 129
 130        [Obsolete("This isn't set correctly anymore")]
 131        [DefaultValue("System")]
 132        public string EncoderLocation { get; set; } = "System";
 133
 134        [Obsolete("This is no longer set")]
 135        [DefaultValue("X64")]
 136        public string SystemArchitecture { get; set; } = "X64";
 137    }
 138}

Methods/Properties

.ctor()