From da943ebe993a698ceedf730a33b187e8caeeba87 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 20 May 2014 21:15:46 -0400 Subject: separate event managers --- MediaBrowser.Controller/Dlna/IConnectionManager.cs | 2 +- MediaBrowser.Controller/Dlna/IContentDirectory.cs | 2 +- MediaBrowser.Controller/Dlna/IEventManager.cs | 20 +------------------- 3 files changed, 3 insertions(+), 21 deletions(-) (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/Dlna/IConnectionManager.cs b/MediaBrowser.Controller/Dlna/IConnectionManager.cs index 942e523e8..38d96e607 100644 --- a/MediaBrowser.Controller/Dlna/IConnectionManager.cs +++ b/MediaBrowser.Controller/Dlna/IConnectionManager.cs @@ -1,7 +1,7 @@  namespace MediaBrowser.Controller.Dlna { - public interface IConnectionManager : IUpnpService + public interface IConnectionManager : IEventManager, IUpnpService { } } diff --git a/MediaBrowser.Controller/Dlna/IContentDirectory.cs b/MediaBrowser.Controller/Dlna/IContentDirectory.cs index 00c236813..28635d9b7 100644 --- a/MediaBrowser.Controller/Dlna/IContentDirectory.cs +++ b/MediaBrowser.Controller/Dlna/IContentDirectory.cs @@ -1,7 +1,7 @@  namespace MediaBrowser.Controller.Dlna { - public interface IContentDirectory : IUpnpService + public interface IContentDirectory : IEventManager, IUpnpService { } } diff --git a/MediaBrowser.Controller/Dlna/IEventManager.cs b/MediaBrowser.Controller/Dlna/IEventManager.cs index 4abf623a9..54e2a02dd 100644 --- a/MediaBrowser.Controller/Dlna/IEventManager.cs +++ b/MediaBrowser.Controller/Dlna/IEventManager.cs @@ -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 /// The callback URL. /// EventSubscriptionResponse. EventSubscriptionResponse CreateEventSubscription(string notificationType, int? timeoutSeconds, string callbackUrl); - - /// - /// Gets the subscription. - /// - /// The identifier. - /// EventSubscription. - EventSubscription GetSubscription(string id); - - /// - /// Triggers the event. - /// - /// Type of the notification. - /// The state variables. - /// Task. - Task TriggerEvent(string notificationType, IDictionary stateVariables); } } -- cgit v1.2.3