SystemInfo.cs 2.7 KB

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