SystemInfo.cs 4.9 KB

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