SystemInfo.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. using MediaBrowser.Model.Updates;
  2. using System.Collections.Generic;
  3. using System;
  4. namespace MediaBrowser.Model.System
  5. {
  6. /// <summary>
  7. /// Class SystemInfo
  8. /// </summary>
  9. public class SystemInfo : PublicSystemInfo
  10. {
  11. public PackageVersionClass SystemUpdateLevel { get; set; }
  12. /// <summary>
  13. /// Gets or sets the display name of the operating system.
  14. /// </summary>
  15. /// <value>The display name of the operating system.</value>
  16. public string OperatingSystemDisplayName { get; set; }
  17. public string PackageName { 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. public bool HasPendingRestart { get; set; }
  23. public bool IsShuttingDown { get; set; }
  24. /// <summary>
  25. /// Gets or sets a value indicating whether [supports library monitor].
  26. /// </summary>
  27. /// <value><c>true</c> if [supports library monitor]; otherwise, <c>false</c>.</value>
  28. public bool SupportsLibraryMonitor { 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 this instance can self restart.
  41. /// </summary>
  42. /// <value><c>true</c> if this instance can self restart; otherwise, <c>false</c>.</value>
  43. public bool CanSelfRestart { get; set; }
  44. /// <summary>
  45. /// Gets or sets a value indicating whether this instance can self update.
  46. /// </summary>
  47. /// <value><c>true</c> if this instance can self update; otherwise, <c>false</c>.</value>
  48. public bool CanSelfUpdate { get; set; }
  49. public bool CanLaunchWebBrowser { get; set; }
  50. /// <summary>
  51. /// Gets or sets the program data path.
  52. /// </summary>
  53. /// <value>The program data path.</value>
  54. public string ProgramDataPath { get; set; }
  55. /// <summary>
  56. /// Gets or sets the items by name path.
  57. /// </summary>
  58. /// <value>The items by name path.</value>
  59. public string ItemsByNamePath { get; set; }
  60. /// <summary>
  61. /// Gets or sets the cache path.
  62. /// </summary>
  63. /// <value>The cache path.</value>
  64. public string CachePath { get; set; }
  65. /// <summary>
  66. /// Gets or sets the log path.
  67. /// </summary>
  68. /// <value>The log path.</value>
  69. public string LogPath { get; set; }
  70. /// <summary>
  71. /// Gets or sets the internal metadata path.
  72. /// </summary>
  73. /// <value>The internal metadata path.</value>
  74. public string InternalMetadataPath { get; set; }
  75. /// <summary>
  76. /// Gets or sets the transcoding temporary path.
  77. /// </summary>
  78. /// <value>The transcoding temporary path.</value>
  79. public string TranscodingTempPath { get; set; }
  80. /// <summary>
  81. /// Gets or sets the HTTP server port number.
  82. /// </summary>
  83. /// <value>The HTTP server port number.</value>
  84. public int HttpServerPortNumber { get; set; }
  85. /// <summary>
  86. /// Gets or sets a value indicating whether [enable HTTPS].
  87. /// </summary>
  88. /// <value><c>true</c> if [enable HTTPS]; otherwise, <c>false</c>.</value>
  89. public bool SupportsHttps { get; set; }
  90. /// <summary>
  91. /// Gets or sets the HTTPS server port number.
  92. /// </summary>
  93. /// <value>The HTTPS server port number.</value>
  94. public int HttpsPortNumber { get; set; }
  95. /// <summary>
  96. /// Gets or sets a value indicating whether this instance has update available.
  97. /// </summary>
  98. /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
  99. public bool HasUpdateAvailable { get; set; }
  100. /// <summary>
  101. /// Gets or sets a value indicating whether [supports automatic run at startup].
  102. /// </summary>
  103. /// <value><c>true</c> if [supports automatic run at startup]; otherwise, <c>false</c>.</value>
  104. public bool SupportsAutoRunAtStartup { get; set; }
  105. public string EncoderLocationType { get; set; }
  106. public Architecture SystemArchitecture { get; set; }
  107. /// <summary>
  108. /// Initializes a new instance of the <see cref="SystemInfo" /> class.
  109. /// </summary>
  110. public SystemInfo()
  111. {
  112. CompletedInstallations = new InstallationInfo[] { };
  113. }
  114. }
  115. }