-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db2f18a
commit 275648d
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 8 additions & 1 deletion
9
fetch2core/src/main/java/com/tonyodev/fetch2core/DownloadBlock.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
} |