SystemInfo.cs 4.7 KB

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