SystemInfo.cs 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. using MediaBrowser.Model.Updates;
  2. using System.Collections.Generic;
  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. /// Gets or sets a value indicating whether this instance is running as service.
  18. /// </summary>
  19. /// <value><c>true</c> if this instance is running as service; otherwise, <c>false</c>.</value>
  20. public bool IsRunningAsService { get; set; }
  21. /// <summary>
  22. /// Gets or sets a value indicating whether [supports running as service].
  23. /// </summary>
  24. /// <value><c>true</c> if [supports running as service]; otherwise, <c>false</c>.</value>
  25. public bool SupportsRunningAsService { get; set; }
  26. /// <summary>
  27. /// Gets or sets the mac address.
  28. /// </summary>
  29. /// <value>The mac address.</value>
  30. public string MacAddress { get; set; }
  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. /// <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 a value indicating whether this instance is network deployed.
  44. /// </summary>
  45. /// <value><c>true</c> if this instance is network deployed; otherwise, <c>false</c>.</value>
  46. public bool IsNetworkDeployed { get; set; }
  47. /// <summary>
  48. /// Gets or sets the in progress installations.
  49. /// </summary>
  50. /// <value>The in progress installations.</value>
  51. public List<InstallationInfo> InProgressInstallations { get; set; }
  52. /// <summary>
  53. /// Gets or sets the web socket port number.
  54. /// </summary>
  55. /// <value>The web socket port number.</value>
  56. public int WebSocketPortNumber { get; set; }
  57. /// <summary>
  58. /// Gets or sets the completed installations.
  59. /// </summary>
  60. /// <value>The completed installations.</value>
  61. public List<InstallationInfo> CompletedInstallations { get; set; }
  62. /// <summary>
  63. /// Gets or sets a value indicating whether this instance can self restart.
  64. /// </summary>
  65. /// <value><c>true</c> if this instance can self restart; otherwise, <c>false</c>.</value>
  66. public bool CanSelfRestart { get; set; }
  67. /// <summary>
  68. /// Gets or sets a value indicating whether this instance can self update.
  69. /// </summary>
  70. /// <value><c>true</c> if this instance can self update; otherwise, <c>false</c>.</value>
  71. public bool CanSelfUpdate { get; set; }
  72. /// <summary>
  73. /// Gets or sets plugin assemblies that failed to load.
  74. /// </summary>
  75. /// <value>The failed assembly loads.</value>
  76. public List<string> FailedPluginAssemblies { get; set; }
  77. /// <summary>
  78. /// Gets or sets the program data path.
  79. /// </summary>
  80. /// <value>The program data path.</value>
  81. public string ProgramDataPath { get; set; }
  82. /// <summary>
  83. /// Gets or sets the items by name path.
  84. /// </summary>
  85. /// <value>The items by name path.</value>
  86. public string ItemsByNamePath { get; set; }
  87. /// <summary>
  88. /// Gets or sets the cache path.
  89. /// </summary>
  90. /// <value>The cache path.</value>
  91. public string CachePath { get; set; }
  92. /// <summary>
  93. /// Gets or sets the log path.
  94. /// </summary>
  95. /// <value>The log path.</value>
  96. public string LogPath { get; set; }
  97. /// <summary>
  98. /// Gets or sets the internal metadata path.
  99. /// </summary>
  100. /// <value>The internal metadata path.</value>
  101. public string InternalMetadataPath { get; set; }
  102. /// <summary>
  103. /// Gets or sets the transcoding temporary path.
  104. /// </summary>
  105. /// <value>The transcoding temporary path.</value>
  106. public string TranscodingTempPath { get; set; }
  107. /// <summary>
  108. /// Gets or sets the HTTP server port number.
  109. /// </summary>
  110. /// <value>The HTTP server port number.</value>
  111. public int HttpServerPortNumber { get; set; }
  112. /// <summary>
  113. /// Gets or sets a value indicating whether [enable HTTPS].
  114. /// </summary>
  115. /// <value><c>true</c> if [enable HTTPS]; otherwise, <c>false</c>.</value>
  116. public bool SupportsHttps { get; set; }
  117. /// <summary>
  118. /// Gets or sets the HTTPS server port number.
  119. /// </summary>
  120. /// <value>The HTTPS server port number.</value>
  121. public int HttpsPortNumber { get; set; }
  122. /// <summary>
  123. /// Gets or sets a value indicating whether this instance has update available.
  124. /// </summary>
  125. /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
  126. public bool HasUpdateAvailable { get; set; }
  127. /// <summary>
  128. /// Gets or sets a value indicating whether [supports automatic run at startup].
  129. /// </summary>
  130. /// <value><c>true</c> if [supports automatic run at startup]; otherwise, <c>false</c>.</value>
  131. public bool SupportsAutoRunAtStartup { get; set; }
  132. public string EncoderLocationType { get; set; }
  133. public Architecture SystemArchitecture { get; set; }
  134. /// <summary>
  135. /// Initializes a new instance of the <see cref="SystemInfo" /> class.
  136. /// </summary>
  137. public SystemInfo()
  138. {
  139. InProgressInstallations = new List<InstallationInfo>();
  140. CompletedInstallations = new List<InstallationInfo>();
  141. FailedPluginAssemblies = new List<string>();
  142. }
  143. }
  144. }