1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-16 07:52:36 +01:00
Radarr/NzbDrone.Core/Notifications/Plex/PlexClient.cs

41 lines
1.0 KiB
C#
Raw Normal View History

2013-07-19 05:47:55 +02:00
using NzbDrone.Core.Tv;
2013-05-20 01:17:32 +02:00
namespace NzbDrone.Core.Notifications.Plex
{
2013-05-20 04:43:22 +02:00
public class PlexClient : NotificationBase<PlexClientSettings>
2013-05-20 01:17:32 +02:00
{
private readonly IPlexService _plexProvider;
2013-05-20 01:17:32 +02:00
public PlexClient(IPlexService plexProvider)
2013-05-20 01:17:32 +02:00
{
_plexProvider = plexProvider;
}
public override string Name
{
get { return "Plex Client"; }
}
public override string ImplementationName
{
get { return "Plex Client"; }
}
2013-05-20 01:17:32 +02:00
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)
{
}
}
}