SystemInfo.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using MediaBrowser.Model.Updates;
  2. using ProtoBuf;
  3. using System;
  4. namespace MediaBrowser.Model.System
  5. {
  6. /// <summary>
  7. /// Class SystemInfo
  8. /// </summary>
  9. [ProtoContract]
  10. public class SystemInfo
  11. {
  12. /// <summary>
  13. /// Gets or sets the version.
  14. /// </summary>
  15. /// <value>The version.</value>
  16. [ProtoMember(1)]
  17. public string Version { get; set; }
  18. /// <summary>
  19. /// Gets or sets a value indicating whether this instance has pending restart.
  20. /// </summary>
  21. /// <value><c>true</c> if this instance has pending restart; otherwise, <c>false</c>.</value>
  22. [ProtoMember(2)]
  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. [ProtoMember(3)]
  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. [ProtoMember(4)]
  35. public InstallationInfo[] InProgressInstallations { get; set; }
  36. /// <summary>
  37. /// Gets or sets the web socket port number.
  38. /// </summary>
  39. /// <value>The web socket port number.</value>
  40. [ProtoMember(5)]
  41. public int WebSocketPortNumber { get; set; }
  42. /// <summary>
  43. /// Gets or sets the completed installations.
  44. /// </summary>
  45. /// <value>The completed installations.</value>
  46. [ProtoMember(6)]
  47. public InstallationInfo[] CompletedInstallations { get; set; }
  48. /// <summary>
  49. /// Gets or sets a value indicating whether [supports native web socket].
  50. /// </summary>
  51. /// <value><c>true</c> if [supports native web socket]; otherwise, <c>false</c>.</value>
  52. [ProtoMember(7)]
  53. public bool SupportsNativeWebSocket { get; set; }
  54. /// <summary>
  55. /// Gets or sets plugin assemblies that failed to load.
  56. /// </summary>
  57. /// <value>The failed assembly loads.</value>
  58. [ProtoMember(8)]
  59. public string[] FailedPluginAssemblies { get; set; }
  60. /// <summary>
  61. /// Gets or sets the id.
  62. /// </summary>
  63. /// <value>The id.</value>
  64. [ProtoMember(9)]
  65. public Guid Id { get; set; }
  66. }
  67. }