/// <summary> /// Cleans up the downloader list. /// </summary> /// <param name="linkIds">Ids of the link you may want to clear.</param> /// <param name="packageIds">Ids of the packages you may want to clear.</param> /// <param name="action">The action type.</param> /// <param name="mode">The mode type.</param> /// <param name="selection">The selection Type.</param> /// <returns>True if successfull.</returns> public async Task CleanUp(long[] linkIds, long[] packageIds, CleanUpActionType action, CleanUpModeType mode, CleanUpSelectionType selection) { var param = new object[] { linkIds, packageIds, action, mode, selection }; await CallAction <object>("cleanUp", param); }
/// <summary> /// Cleans up the downloader list. /// </summary> /// <param name="linkIds">Ids of the link you may want to clear.</param> /// <param name="packageIds">Ids of the packages you may want to clear.</param> /// <param name="action">The action type.</param> /// <param name="mode">The mode type.</param> /// <param name="selection">The selection Type.</param> /// <returns>True if successfull.</returns> public bool CleanUp(long[] linkIds, long[] packageIds, CleanUpActionType action, CleanUpModeType mode, CleanUpSelectionType selection) { var param = new object[] { linkIds, packageIds, action, mode, selection }; var response = ApiHandler.CallAction <object>(Device, "/linkgrabberv2/cleanUp", param, JDownloaderHandler.LoginObject); if (response == null) { return(false); } return(true); }