SystemInfo.cs 3.2 KB

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