SystemInfo.cs 5.7 KB

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