update Download Request Status By Download Id
open fun updateDownloadRequestStatusByDownloadId(downloadId: Long, statusCode: Int, reasonCode: Int, bytesDownloaded: Long, actualSize: Long, updateParentRecord: Boolean): DownloadRequest
Updates the status of download request.
Return
reference to the updated entity if it was found and updated, otherwise null.
Parameters
download Id
the unique identifier of the download request that caused the status change.
status Code
the new status of the download.
reason Code
the reason code for the new status, if any.
bytes Downloaded
the number of bytes downloaded so far.
actual Size
the total size of the download.
update Parent Record
true to update the DownloadRequestSet parent record.