2014-04-26 20:42:05 -07:00
|
|
|
|
using MediaBrowser.Model.Notifications;
|
2014-04-25 13:15:50 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Notifications
|
|
|
|
|
{
|
|
|
|
|
public interface INotificationManager
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sends the notification.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request">The request.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
Task SendNotification(NotificationRequest request, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Adds the parts.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="services">The services.</param>
|
2014-04-26 20:42:05 -07:00
|
|
|
|
/// <param name="notificationTypeFactories">The notification type factories.</param>
|
|
|
|
|
void AddParts(IEnumerable<INotificationService> services, IEnumerable<INotificationTypeFactory> notificationTypeFactories);
|
2014-04-25 13:15:50 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-04-26 20:42:05 -07:00
|
|
|
|
/// Gets the notification types.
|
2014-04-25 13:15:50 -07:00
|
|
|
|
/// </summary>
|
2014-04-26 20:42:05 -07:00
|
|
|
|
/// <returns>IEnumerable{NotificationTypeInfo}.</returns>
|
|
|
|
|
IEnumerable<NotificationTypeInfo> GetNotificationTypes();
|
2014-04-25 13:15:50 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-04-26 20:42:05 -07:00
|
|
|
|
/// Gets the notification services.
|
2014-04-25 13:15:50 -07:00
|
|
|
|
/// </summary>
|
2014-04-26 20:42:05 -07:00
|
|
|
|
/// <returns>IEnumerable{NotificationServiceInfo}.</returns>
|
|
|
|
|
IEnumerable<NotificationServiceInfo> GetNotificationServices();
|
2014-04-25 13:15:50 -07:00
|
|
|
|
}
|
|
|
|
|
}
|