mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-18 03:19:06 -07:00
30 lines
1.2 KiB
C#
30 lines
1.2 KiB
C#
|
|
namespace MediaBrowser.Controller.Dlna
|
|
{
|
|
public interface IEventManager
|
|
{
|
|
/// <summary>
|
|
/// Cancels the event subscription.
|
|
/// </summary>
|
|
/// <param name="subscriptionId">The subscription identifier.</param>
|
|
EventSubscriptionResponse CancelEventSubscription(string subscriptionId);
|
|
|
|
/// <summary>
|
|
/// Renews the event subscription.
|
|
/// </summary>
|
|
/// <param name="subscriptionId">The subscription identifier.</param>
|
|
/// <param name="timeoutSeconds">The timeout seconds.</param>
|
|
/// <returns>EventSubscriptionResponse.</returns>
|
|
EventSubscriptionResponse RenewEventSubscription(string subscriptionId, int? timeoutSeconds);
|
|
|
|
/// <summary>
|
|
/// Creates the event subscription.
|
|
/// </summary>
|
|
/// <param name="notificationType">Type of the notification.</param>
|
|
/// <param name="timeoutSeconds">The timeout seconds.</param>
|
|
/// <param name="callbackUrl">The callback URL.</param>
|
|
/// <returns>EventSubscriptionResponse.</returns>
|
|
EventSubscriptionResponse CreateEventSubscription(string notificationType, int? timeoutSeconds, string callbackUrl);
|
|
}
|
|
}
|