SystemInfo.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using MediaBrowser.Model.Updates;
  4. namespace MediaBrowser.Model.System
  5. {
  6. /// <summary>
  7. /// Class SystemInfo
  8. /// </summary>
  9. public class SystemInfo : PublicSystemInfo
  10. {
  11. public PackageVersionClass SystemUpdateLevel { get; set; }
  12. /// <summary>
  13. /// Gets or sets the display name of the operating system.
  14. /// </summary>
  15. /// <value>The display name of the operating system.</value>
  16. public string OperatingSystemDisplayName { get; set; }
  17. /// <summary>
  18. /// The product name. This is the AssemblyProduct name.
  19. /// </summary>
  20. public string ProductName { get; set; }
  21. /// <summary>
  22. /// Get or sets the package name.
  23. /// </summary>
  24. /// <value>The value of the '-package' command line argument.</value>
  25. public string PackageName { get; set; }
  26. /// <summary>
  27. /// Gets or sets a value indicating whether this instance has pending restart.
  28. /// </summary>
  29. /// <value><c>true</c> if this instance has pending restart; otherwise, <c>false</c>.</value>
  30. public bool HasPendingRestart { get; set; }
  31. public bool IsShuttingDown { get; set; }
  32. /// <summary>
  33. /// Gets or sets a value indicating whether [supports library monitor].
  34. /// </summary>
  35. /// <value><c>true</c> if [supports library monitor]; otherwise, <c>false</c>.</value>
  36. public bool SupportsLibraryMonitor { get; set; }
  37. /// <summary>
  38. /// Gets or sets the web socket port number.
  39. /// </summary>
  40. /// <value>The web socket port number.</value>
  41. public int WebSocketPortNumber { get; set; }
  42. /// <summary>
  43. /// Gets or sets the completed installations.
  44. /// </summary>
  45. /// <value>The completed installations.</value>
  46. public InstallationInfo[] CompletedInstallations { get; set; }
  47. /// <summary>
  48. /// Gets or sets a value indicating whether this instance can self restart.
  49. /// </summary>
  50. /// <value><c>true</c> if this instance can self restart; otherwise, <c>false</c>.</value>
  51. public bool CanSelfRestart { get; set; }
  52. /// <summary>
  53. /// Gets or sets a value indicating whether this instance can self update.
  54. /// </summary>
  55. /// <value><c>true</c> if this instance can self update; otherwise, <c>false</c>.</value>
  56. public bool CanSelfUpdate { get; set; }
  57. public bool CanLaunchWebBrowser { get; set; }
  58. /// <summary>
  59. /// Gets or sets the program data path.
  60. /// </summary>
  61. /// <value>The program data path.</value>
  62. public string ProgramDataPath { get; set; }
  63. /// <summary>
  64. /// Gets or sets the items by name path.
  65. /// </summary>
  66. /// <value>The items by name path.</value>
  67. public string ItemsByNamePath { get; set; }
  68. /// <summary>
  69. /// Gets or sets the cache path.
  70. /// </summary>
  71. /// <value>The cache path.</value>
  72. public string CachePath { get; set; }
  73. /// <summary>
  74. /// Gets or sets the log path.
  75. /// </summary>
  76. /// <value>The log path.</value>
  77. public string LogPath { get; set; }
  78. /// <summary>
  79. /// Gets or sets the internal metadata path.
  80. /// </summary>
  81. /// <value>The internal metadata path.</value>
  82. public string InternalMetadataPath { get; set; }
  83. /// <summary>
  84. /// Gets or sets the transcoding temporary path.
  85. /// </summary>
  86. /// <value>The transcoding temporary path.</value>
  87. public string TranscodingTempPath { get; set; }
  88. /// <summary>
  89. /// Gets or sets the HTTP server port number.
  90. /// </summary>
  91. /// <value>The HTTP server port number.</value>
  92. public int HttpServerPortNumber { get; set; }
  93. /// <summary>
  94. /// Gets or sets a value indicating whether [enable HTTPS].
  95. /// </summary>
  96. /// <value><c>true</c> if [enable HTTPS]; otherwise, <c>false</c>.</value>
  97. public bool SupportsHttps { get; set; }
  98. /// <summary>
  99. /// Gets or sets the HTTPS server port number.
  100. /// </summary>
  101. /// <value>The HTTPS server port number.</value>
  102. public int HttpsPortNumber { get; set; }
  103. /// <summary>
  104. /// Gets or sets a value indicating whether this instance has update available.
  105. /// </summary>
  106. /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
  107. public bool HasUpdateAvailable { get; set; }
  108. public string EncoderLocationType { get; set; }
  109. public Architecture SystemArchitecture { get; set; }
  110. /// <summary>
  111. /// Initializes a new instance of the <see cref="SystemInfo" /> class.
  112. /// </summary>
  113. public SystemInfo()
  114. {
  115. CompletedInstallations = Array.Empty<InstallationInfo>();
  116. }
  117. }
  118. }