parent
6e85b8782e
commit
c67a4a61a4
@ -0,0 +1,14 @@
|
|||||||
|
namespace NzbDrone.Core.HealthCheck
|
||||||
|
{
|
||||||
|
public class EventDrivenHealthCheck
|
||||||
|
{
|
||||||
|
public IProvideHealthCheck HealthCheck { get; set; }
|
||||||
|
public CheckOnCondition Condition { get; set; }
|
||||||
|
|
||||||
|
public EventDrivenHealthCheck(IProvideHealthCheck healthCheck, CheckOnCondition condition)
|
||||||
|
{
|
||||||
|
HealthCheck = healthCheck;
|
||||||
|
Condition = condition;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
using System;
|
||||||
|
using NzbDrone.Common.Messaging;
|
||||||
|
using NzbDrone.Core.Download;
|
||||||
|
using NzbDrone.Core.Parser.Model;
|
||||||
|
|
||||||
|
namespace NzbDrone.Core.MediaFiles.Events
|
||||||
|
{
|
||||||
|
public class EpisodeImportFailedEvent : IEvent
|
||||||
|
{
|
||||||
|
public Exception Exception { get; set; }
|
||||||
|
public LocalEpisode EpisodeInfo { get; }
|
||||||
|
public bool NewDownload { get; }
|
||||||
|
public string DownloadClient { get; }
|
||||||
|
public string DownloadId { get; }
|
||||||
|
|
||||||
|
public EpisodeImportFailedEvent(Exception exception, LocalEpisode episodeInfo, bool newDownload, DownloadClientItem downloadClientItem)
|
||||||
|
{
|
||||||
|
Exception = exception;
|
||||||
|
EpisodeInfo = episodeInfo;
|
||||||
|
NewDownload = newDownload;
|
||||||
|
|
||||||
|
if (downloadClientItem != null)
|
||||||
|
{
|
||||||
|
DownloadClient = downloadClientItem.DownloadClient;
|
||||||
|
DownloadId = downloadClientItem.DownloadId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue