2019-01-13 20:01:16 +00:00
|
|
|
using System.Threading;
|
2018-12-27 23:27:57 +00:00
|
|
|
using System.Threading.Tasks;
|
2019-01-13 19:25:32 +00:00
|
|
|
using MediaBrowser.Controller.Entities;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Notifications
|
|
|
|
{
|
|
|
|
public interface INotificationService
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the name.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The name.</value>
|
|
|
|
string Name { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Sends the notification.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request">The request.</param>
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
Task SendNotification(UserNotification request, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Determines whether [is enabled for user] [the specified user identifier].
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="user">The user.</param>
|
|
|
|
/// <returns><c>true</c> if [is enabled for user] [the specified user identifier]; otherwise, <c>false</c>.</returns>
|
2020-05-13 02:10:35 +00:00
|
|
|
bool IsEnabledForUser(Jellyfin.Data.Entities.User user);
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|