SystemInfo.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using MediaBrowser.Model.Updates;
  2. using ProtoBuf;
  3. namespace MediaBrowser.Model.System
  4. {
  5. /// <summary>
  6. /// Class SystemInfo
  7. /// </summary>
  8. [ProtoContract]
  9. public class SystemInfo
  10. {
  11. /// <summary>
  12. /// Gets or sets the version.
  13. /// </summary>
  14. /// <value>The version.</value>
  15. [ProtoMember(1)]
  16. public string Version { get; set; }
  17. /// <summary>
  18. /// Gets or sets a value indicating whether this instance has pending restart.
  19. /// </summary>
  20. /// <value><c>true</c> if this instance has pending restart; otherwise, <c>false</c>.</value>
  21. [ProtoMember(2)]
  22. public bool HasPendingRestart { get; set; }
  23. /// <summary>
  24. /// Gets or sets a value indicating whether this instance is network deployed.
  25. /// </summary>
  26. /// <value><c>true</c> if this instance is network deployed; otherwise, <c>false</c>.</value>
  27. [ProtoMember(3)]
  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. [ProtoMember(4)]
  34. public 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. [ProtoMember(5)]
  40. public int WebSocketPortNumber { get; set; }
  41. /// <summary>
  42. /// Gets or sets the completed installations.
  43. /// </summary>
  44. /// <value>The completed installations.</value>
  45. [ProtoMember(6)]
  46. public InstallationInfo[] CompletedInstallations { get; set; }
  47. /// <summary>
  48. /// Gets or sets a value indicating whether [supports native web socket].
  49. /// </summary>
  50. /// <value><c>true</c> if [supports native web socket]; otherwise, <c>false</c>.</value>
  51. [ProtoMember(7)]
  52. public bool SupportsNativeWebSocket { get; set; }
  53. /// <summary>
  54. /// Gets or sets plugin assemblies that failed to load.
  55. /// </summary>
  56. /// <value>The failed assembly loads.</value>
  57. public string[] FailedPluginAssemblies { get; set; }
  58. }
  59. }