| | 1 | | #nullable disable |
| | 2 | | #pragma warning disable CS1591 |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | | using System.Collections.Generic; |
| | 6 | | using System.ComponentModel; |
| | 7 | | using MediaBrowser.Model.Updates; |
| | 8 | |
|
| | 9 | | namespace 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> |
| 0 | 19 | | public SystemInfo() |
| | 20 | | { |
| 0 | 21 | | CompletedInstallations = Array.Empty<InstallationInfo>(); |
| 0 | 22 | | } |
| | 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 | | [Obsolete("Use the newer SystemStorageDto instead")] |
| | 80 | | public string ProgramDataPath { get; set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets the web UI resources path. |
| | 84 | | /// </summary> |
| | 85 | | /// <value>The web UI resources path.</value> |
| | 86 | | [Obsolete("Use the newer SystemStorageDto instead")] |
| | 87 | | public string WebPath { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets the items by name path. |
| | 91 | | /// </summary> |
| | 92 | | /// <value>The items by name path.</value> |
| | 93 | | [Obsolete("Use the newer SystemStorageDto instead")] |
| | 94 | | public string ItemsByNamePath { get; set; } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// Gets or sets the cache path. |
| | 98 | | /// </summary> |
| | 99 | | /// <value>The cache path.</value> |
| | 100 | | [Obsolete("Use the newer SystemStorageDto instead")] |
| | 101 | | public string CachePath { get; set; } |
| | 102 | |
|
| | 103 | | /// <summary> |
| | 104 | | /// Gets or sets the log path. |
| | 105 | | /// </summary> |
| | 106 | | /// <value>The log path.</value> |
| | 107 | | [Obsolete("Use the newer SystemStorageDto instead")] |
| | 108 | | public string LogPath { get; set; } |
| | 109 | |
|
| | 110 | | /// <summary> |
| | 111 | | /// Gets or sets the internal metadata path. |
| | 112 | | /// </summary> |
| | 113 | | /// <value>The internal metadata path.</value> |
| | 114 | | [Obsolete("Use the newer SystemStorageDto instead")] |
| | 115 | | public string InternalMetadataPath { get; set; } |
| | 116 | |
|
| | 117 | | /// <summary> |
| | 118 | | /// Gets or sets the transcode path. |
| | 119 | | /// </summary> |
| | 120 | | /// <value>The transcode path.</value> |
| | 121 | | [Obsolete("Use the newer SystemStorageDto instead")] |
| | 122 | | public string TranscodingTempPath { get; set; } |
| | 123 | |
|
| | 124 | | /// <summary> |
| | 125 | | /// Gets or sets the list of cast receiver applications. |
| | 126 | | /// </summary> |
| | 127 | | public IReadOnlyList<CastReceiverApplication> CastReceiverApplications { get; set; } |
| | 128 | |
|
| | 129 | | /// <summary> |
| | 130 | | /// Gets or sets a value indicating whether this instance has update available. |
| | 131 | | /// </summary> |
| | 132 | | /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value> |
| | 133 | | [Obsolete("This should be handled by the package manager")] |
| | 134 | | [DefaultValue(false)] |
| | 135 | | public bool HasUpdateAvailable { get; set; } |
| | 136 | |
|
| | 137 | | [Obsolete("This isn't set correctly anymore")] |
| | 138 | | [DefaultValue("System")] |
| | 139 | | public string EncoderLocation { get; set; } = "System"; |
| | 140 | |
|
| | 141 | | [Obsolete("This is no longer set")] |
| | 142 | | [DefaultValue("X64")] |
| | 143 | | public string SystemArchitecture { get; set; } = "X64"; |
| | 144 | | } |