From 275648daf5db1c138c89348878a3451c90c221ca Mon Sep 17 00:00:00 2001 From: Tonyo Francis Date: Sat, 30 Jun 2018 19:15:22 -0400 Subject: [PATCH] doc update --- .../main/java/com/tonyodev/fetch2core/DownloadBlock.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fetch2core/src/main/java/com/tonyodev/fetch2core/DownloadBlock.kt b/fetch2core/src/main/java/com/tonyodev/fetch2core/DownloadBlock.kt index 4daf95ba..39a77eab 100644 --- a/fetch2core/src/main/java/com/tonyodev/fetch2core/DownloadBlock.kt +++ b/fetch2core/src/main/java/com/tonyodev/fetch2core/DownloadBlock.kt @@ -1,19 +1,26 @@ package com.tonyodev.fetch2core +/** Class used to hold partial downloaded information for a download.*/ interface DownloadBlock { + /* Download ID.*/ val downloadId: Int + /** Position in the downloading block sequence.*/ val blockPosition: Int + /** Block start position.*/ val startByte: Long + /* Block end position.*/ val endByte: Long - + /* Downloaded bytes in block.*/ val downloadedBytes: Long + /** Progress completion of block.*/ val progress: Int + /** Copy DownloadBlock object.*/ fun copy(): DownloadBlock } \ No newline at end of file