IServerApplicationHost.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using MediaBrowser.Common;
  2. using MediaBrowser.Model.System;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Net;
  6. namespace MediaBrowser.Controller
  7. {
  8. /// <summary>
  9. /// Interface IServerApplicationHost
  10. /// </summary>
  11. public interface IServerApplicationHost : IApplicationHost
  12. {
  13. event EventHandler HasUpdateAvailableChanged;
  14. /// <summary>
  15. /// Gets the system info.
  16. /// </summary>
  17. /// <returns>SystemInfo.</returns>
  18. SystemInfo GetSystemInfo();
  19. /// <summary>
  20. /// Gets a value indicating whether [supports automatic run at startup].
  21. /// </summary>
  22. /// <value><c>true</c> if [supports automatic run at startup]; otherwise, <c>false</c>.</value>
  23. bool SupportsAutoRunAtStartup { get; }
  24. /// <summary>
  25. /// Gets a value indicating whether [supports library monitor].
  26. /// </summary>
  27. /// <value><c>true</c> if [supports library monitor]; otherwise, <c>false</c>.</value>
  28. bool SupportsLibraryMonitor { get; }
  29. /// <summary>
  30. /// Gets the HTTP server port.
  31. /// </summary>
  32. /// <value>The HTTP server port.</value>
  33. int HttpPort { get; }
  34. /// <summary>
  35. /// Gets the HTTPS port.
  36. /// </summary>
  37. /// <value>The HTTPS port.</value>
  38. int HttpsPort { get; }
  39. /// <summary>
  40. /// Gets a value indicating whether [supports HTTPS].
  41. /// </summary>
  42. /// <value><c>true</c> if [supports HTTPS]; otherwise, <c>false</c>.</value>
  43. bool EnableHttps { get; }
  44. /// <summary>
  45. /// Gets a value indicating whether this instance has update available.
  46. /// </summary>
  47. /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
  48. bool HasUpdateAvailable { get; }
  49. /// <summary>
  50. /// Gets the name of the friendly.
  51. /// </summary>
  52. /// <value>The name of the friendly.</value>
  53. string FriendlyName { get; }
  54. /// <summary>
  55. /// Gets the local ip address.
  56. /// </summary>
  57. /// <value>The local ip address.</value>
  58. List<IPAddress> LocalIpAddresses { get; }
  59. /// <summary>
  60. /// Gets the local API URL.
  61. /// </summary>
  62. /// <value>The local API URL.</value>
  63. string LocalApiUrl { get; }
  64. /// <summary>
  65. /// Gets the local API URL.
  66. /// </summary>
  67. /// <param name="host">The host.</param>
  68. /// <returns>System.String.</returns>
  69. string GetLocalApiUrl(string host);
  70. /// <summary>
  71. /// Gets the local API URL.
  72. /// </summary>
  73. /// <param name="ipAddress">The ip address.</param>
  74. /// <returns>System.String.</returns>
  75. string GetLocalApiUrl(IPAddress ipAddress);
  76. }
  77. }