SystemInfo.cs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. using MediaBrowser.Model.Updates;
  2. namespace MediaBrowser.Model.System
  3. {
  4. /// <summary>
  5. /// Class SystemInfo
  6. /// </summary>
  7. public class SystemInfo
  8. {
  9. /// <summary>
  10. /// Gets or sets the version.
  11. /// </summary>
  12. /// <value>The version.</value>
  13. public string Version { get; set; }
  14. /// <summary>
  15. /// Gets or sets the mac address.
  16. /// </summary>
  17. /// <value>The mac address.</value>
  18. public string MacAddress { get; set; }
  19. /// <summary>
  20. /// Gets or sets a value indicating whether this instance has pending restart.
  21. /// </summary>
  22. /// <value><c>true</c> if this instance has pending restart; otherwise, <c>false</c>.</value>
  23. public bool HasPendingRestart { get; set; }
  24. /// <summary>
  25. /// Gets or sets a value indicating whether this instance is network deployed.
  26. /// </summary>
  27. /// <value><c>true</c> if this instance is network deployed; otherwise, <c>false</c>.</value>
  28. public bool IsNetworkDeployed { get; set; }
  29. /// <summary>
  30. /// Gets or sets the in progress installations.
  31. /// </summary>
  32. /// <value>The in progress installations.</value>
  33. public InstallationInfo[] InProgressInstallations { get; set; }
  34. /// <summary>
  35. /// Gets or sets the web socket port number.
  36. /// </summary>
  37. /// <value>The web socket port number.</value>
  38. public int WebSocketPortNumber { get; set; }
  39. /// <summary>
  40. /// Gets or sets the completed installations.
  41. /// </summary>
  42. /// <value>The completed installations.</value>
  43. public InstallationInfo[] CompletedInstallations { get; set; }
  44. /// <summary>
  45. /// Gets or sets a value indicating whether [supports native web socket].
  46. /// </summary>
  47. /// <value><c>true</c> if [supports native web socket]; otherwise, <c>false</c>.</value>
  48. public bool SupportsNativeWebSocket { get; set; }
  49. /// <summary>
  50. /// Gets or sets plugin assemblies that failed to load.
  51. /// </summary>
  52. /// <value>The failed assembly loads.</value>
  53. public string[] FailedPluginAssemblies { get; set; }
  54. /// <summary>
  55. /// Gets or sets the id.
  56. /// </summary>
  57. /// <value>The id.</value>
  58. public string Id { get; set; }
  59. /// <summary>
  60. /// Gets or sets the program data path.
  61. /// </summary>
  62. /// <value>The program data path.</value>
  63. public string ProgramDataPath { get; set; }
  64. /// <summary>
  65. /// Gets or sets the HTTP server port number.
  66. /// </summary>
  67. /// <value>The HTTP server port number.</value>
  68. public int HttpServerPortNumber { get; set; }
  69. /// <summary>
  70. /// Initializes a new instance of the <see cref="SystemInfo"/> class.
  71. /// </summary>
  72. public SystemInfo()
  73. {
  74. InProgressInstallations = new InstallationInfo[] { };
  75. CompletedInstallations = new InstallationInfo[] { };
  76. FailedPluginAssemblies = new string[] { };
  77. }
  78. }
  79. }