SystemInfo.cs 4.6 KB

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