protected override bool TriggerAction(IList <IPackageVersion> versions) { var canDownload = m_PackageDatabase.Download(versions.Select(v => v.package)); if (canDownload) { PackageManagerWindowAnalytics.SendEvent("startDownloadNew", packageIds: versions.Select(v => v.packageUniqueId)); } return(canDownload); }
protected override bool TriggerAction(IPackageVersion version) { var canDownload = m_PackageDatabase.Download(version.package); if (canDownload) { PackageManagerWindowAnalytics.SendEvent("startDownloadDowngrade", version.packageUniqueId); } return(canDownload); }