SystemInfo.cs 4.7 KB

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