mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-10 04:06:17 +00:00
separate event managers
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
namespace MediaBrowser.Controller.Dlna
|
||||
{
|
||||
public interface IConnectionManager : IUpnpService
|
||||
public interface IConnectionManager : IEventManager, IUpnpService
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
namespace MediaBrowser.Controller.Dlna
|
||||
{
|
||||
public interface IContentDirectory : IUpnpService
|
||||
public interface IContentDirectory : IEventManager, IUpnpService
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using MediaBrowser.Model.Dlna;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace MediaBrowser.Controller.Dlna
|
||||
{
|
||||
public interface IEventManager
|
||||
@@ -28,20 +25,5 @@ namespace MediaBrowser.Controller.Dlna
|
||||
/// <param name="callbackUrl">The callback URL.</param>
|
||||
/// <returns>EventSubscriptionResponse.</returns>
|
||||
EventSubscriptionResponse CreateEventSubscription(string notificationType, int? timeoutSeconds, string callbackUrl);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the subscription.
|
||||
/// </summary>
|
||||
/// <param name="id">The identifier.</param>
|
||||
/// <returns>EventSubscription.</returns>
|
||||
EventSubscription GetSubscription(string id);
|
||||
|
||||
/// <summary>
|
||||
/// Triggers the event.
|
||||
/// </summary>
|
||||
/// <param name="notificationType">Type of the notification.</param>
|
||||
/// <param name="stateVariables">The state variables.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task TriggerEvent(string notificationType, IDictionary<string,string> stateVariables);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user