1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/NzbDrone.Core/Notifications/Plex/PlexClient.cs

38 lines
958 B
C#
Raw Normal View History

2013-05-20 02:17:32 +03:00
using NLog;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Notifications.Plex
{
2013-05-20 05:43:22 +03:00
public class PlexClient : NotificationBase<PlexClientSettings>
2013-05-20 02:17:32 +03:00
{
private readonly PlexProvider _plexProvider;
public PlexClient(PlexProvider plexProvider)
{
_plexProvider = plexProvider;
}
public override string Name
{
get { return "Plex Client"; }
}
public override void OnGrab(string message)
{
const string header = "NzbDrone [TV] - Grabbed";
_plexProvider.Notify(Settings, header, message);
}
public override void OnDownload(string message, Series series)
{
const string header = "NzbDrone [TV] - Downloaded";
_plexProvider.Notify(Settings, header, message);
}
public override void AfterRename(Series series)
{
}
}
}