SystemInfo.cs 6.4 KB

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