jellyfin/MediaBrowser.Controller/IServerApplicationHost.cs

93 lines
2.9 KiB
C#
Raw Normal View History

2015-01-17 05:29:53 +01:00
using MediaBrowser.Common;
2013-03-07 06:34:00 +01:00
using MediaBrowser.Model.System;
2014-04-26 04:55:07 +02:00
using System;
2015-12-29 04:39:38 +01:00
using System.Collections.Generic;
using System.Net;
2013-03-07 06:34:00 +01:00
namespace MediaBrowser.Controller
{
2013-04-19 22:27:02 +02:00
/// <summary>
/// Interface IServerApplicationHost
/// </summary>
2013-03-07 06:34:00 +01:00
public interface IServerApplicationHost : IApplicationHost
{
2014-04-26 04:55:07 +02:00
event EventHandler HasUpdateAvailableChanged;
2016-04-24 05:03:49 +02:00
2013-04-19 22:27:02 +02:00
/// <summary>
/// Gets the system info.
/// </summary>
/// <returns>SystemInfo.</returns>
2013-03-07 06:34:00 +01:00
SystemInfo GetSystemInfo();
2013-06-03 20:15:35 +02:00
2014-01-06 02:59:21 +01:00
/// <summary>
/// Gets a value indicating whether [supports automatic run at startup].
/// </summary>
/// <value><c>true</c> if [supports automatic run at startup]; otherwise, <c>false</c>.</value>
bool SupportsAutoRunAtStartup { get; }
2014-03-17 05:25:11 +01:00
/// <summary>
/// Gets a value indicating whether [supports library monitor].
/// </summary>
/// <value><c>true</c> if [supports library monitor]; otherwise, <c>false</c>.</value>
bool SupportsLibraryMonitor { get; }
2014-03-17 05:25:11 +01:00
/// <summary>
/// Gets the HTTP server port.
/// </summary>
/// <value>The HTTP server port.</value>
2015-01-19 05:29:57 +01:00
int HttpPort { get; }
/// <summary>
/// Gets the HTTPS port.
/// </summary>
/// <value>The HTTPS port.</value>
int HttpsPort { get; }
/// <summary>
/// Gets a value indicating whether [supports HTTPS].
/// </summary>
/// <value><c>true</c> if [supports HTTPS]; otherwise, <c>false</c>.</value>
bool EnableHttps { get; }
2014-04-26 04:55:07 +02:00
/// <summary>
/// Gets a value indicating whether this instance has update available.
/// </summary>
/// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
bool HasUpdateAvailable { get; }
2014-07-28 00:01:29 +02:00
/// <summary>
/// Gets the name of the friendly.
/// </summary>
/// <value>The name of the friendly.</value>
string FriendlyName { get; }
2014-09-17 05:04:10 +02:00
/// <summary>
2015-01-24 20:03:55 +01:00
/// Gets the local ip address.
2014-09-17 05:04:10 +02:00
/// </summary>
2015-01-24 20:03:55 +01:00
/// <value>The local ip address.</value>
2015-12-29 04:39:38 +01:00
List<IPAddress> LocalIpAddresses { get; }
2015-01-24 20:03:55 +01:00
/// <summary>
/// Gets the local API URL.
/// </summary>
/// <value>The local API URL.</value>
string LocalApiUrl { get; }
2015-02-10 06:54:58 +01:00
/// <summary>
/// Gets the local API URL.
/// </summary>
/// <param name="host">The host.</param>
/// <returns>System.String.</returns>
string GetLocalApiUrl(string host);
2016-03-09 18:40:29 +01:00
/// <summary>
/// Gets the local API URL.
/// </summary>
/// <param name="ipAddress">The ip address.</param>
/// <returns>System.String.</returns>
string GetLocalApiUrl(IPAddress ipAddress);
2016-04-24 05:03:49 +02:00
void LaunchUrl(string url);
2013-03-07 06:34:00 +01:00
}
}