You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
950 B
30 lines
950 B
using System;
|
|
using NzbDrone.Common.Messaging;
|
|
using NzbDrone.Core.Download;
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
namespace NzbDrone.Core.MediaFiles.Events
|
|
{
|
|
public class TrackImportFailedEvent : IEvent
|
|
{
|
|
public Exception Exception { get; set; }
|
|
public LocalTrack TrackInfo { get; }
|
|
public bool NewDownload { get; }
|
|
public DownloadClientItemClientInfo DownloadClientInfo { get; set; }
|
|
public string DownloadId { get; }
|
|
|
|
public TrackImportFailedEvent(Exception exception, LocalTrack trackInfo, bool newDownload, DownloadClientItem downloadClientItem)
|
|
{
|
|
Exception = exception;
|
|
TrackInfo = trackInfo;
|
|
NewDownload = newDownload;
|
|
|
|
if (downloadClientItem != null)
|
|
{
|
|
DownloadClientInfo = downloadClientItem.DownloadClientInfo;
|
|
DownloadId = downloadClientItem.DownloadId;
|
|
}
|
|
}
|
|
}
|
|
}
|