mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
#nullable disable
|
|
#pragma warning disable CS1591
|
|
|
|
using System.Net.Http;
|
|
using Emby.Dlna.Eventing;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Emby.Dlna.Service
|
|
{
|
|
public class BaseService : IDlnaEventManager
|
|
{
|
|
protected BaseService(ILogger<BaseService> logger, IHttpClientFactory httpClientFactory)
|
|
{
|
|
Logger = logger;
|
|
EventManager = new DlnaEventManager(logger, httpClientFactory);
|
|
}
|
|
|
|
protected IDlnaEventManager EventManager { get; }
|
|
|
|
protected ILogger Logger { get; }
|
|
|
|
public EventSubscriptionResponse CancelEventSubscription(string subscriptionId)
|
|
{
|
|
return EventManager.CancelEventSubscription(subscriptionId);
|
|
}
|
|
|
|
public EventSubscriptionResponse RenewEventSubscription(string subscriptionId, string notificationType, string requestedTimeoutString, string callbackUrl)
|
|
{
|
|
return EventManager.RenewEventSubscription(subscriptionId, notificationType, requestedTimeoutString, callbackUrl);
|
|
}
|
|
|
|
public EventSubscriptionResponse CreateEventSubscription(string notificationType, string requestedTimeoutString, string callbackUrl)
|
|
{
|
|
return EventManager.CreateEventSubscription(notificationType, requestedTimeoutString, callbackUrl);
|
|
}
|
|
}
|
|
}
|