public ItemDownloading(IDownloadInformation dl, ProcessedEpisode pe, string desiredLocationNoExt, DownloadingFinder.DownloadApp tApp) { Episode = pe; DesiredLocationNoExt = desiredLocationNoExt; entry = dl; IconNumber = tApp == DownloadingFinder.DownloadApp.uTorrent ? 2 : tApp == DownloadingFinder.DownloadApp.SABnzbd ? 8 : tApp == DownloadingFinder.DownloadApp.qBitTorrent ? 10 : 0; }
public ItemDownloading(IDownloadInformation dl, ProcessedEpisode pe, string desiredLocationNoExt, DownloadingFinder.DownloadApp tApp, ItemMissing me) : this(dl, desiredLocationNoExt, tApp, me) { Episode = pe; }
public ItemDownloading(IDownloadInformation dl, MovieConfiguration mc, string desiredLocationNoExt, DownloadingFinder.DownloadApp tApp, ItemMissing me) : this(dl, desiredLocationNoExt, tApp, me) { Episode = null; Movie = mc; }
private ItemDownloading(IDownloadInformation dl, string desiredLocationNoExt, DownloadingFinder.DownloadApp tApp, ItemMissing undoItem) { DesiredLocationNoExt = desiredLocationNoExt; entry = dl; UndoItemMissing = undoItem; IconNumber = tApp switch { DownloadingFinder.DownloadApp.uTorrent => 2, DownloadingFinder.DownloadApp.SABnzbd => 8, DownloadingFinder.DownloadApp.qBitTorrent => 10, _ => 0 }; }