separate event managers

This commit is contained in:
Luke Pulverenti
2014-05-20 21:15:46 -04:00
parent 1774e5b1ac
commit da943ebe99
10 changed files with 82 additions and 50 deletions

View File

@@ -1,7 +1,7 @@

namespace MediaBrowser.Controller.Dlna
{
public interface IConnectionManager : IUpnpService
public interface IConnectionManager : IEventManager, IUpnpService
{
}
}

View File

@@ -1,7 +1,7 @@

namespace MediaBrowser.Controller.Dlna
{
public interface IContentDirectory : IUpnpService
public interface IContentDirectory : IEventManager, IUpnpService
{
}
}

View File

@@ -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);
}
}