SystemInfo.cs 5.9 KB

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