SystemInfo.cs 3.4 KB

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