Taboolib 5.0 fully refactored & Not a plugin now.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package io.izzel.taboolib.util.eagletdl;
|
||||
|
||||
public class ConnectedEvent {
|
||||
|
||||
private long contentLength;
|
||||
private EagletTask task;
|
||||
|
||||
public ConnectedEvent(long length, EagletTask task) {
|
||||
this.contentLength = length;
|
||||
this.task = task;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the length of the download task.
|
||||
* <p>
|
||||
* If the length is -1, this task cannot be downloaded in multiple threads.
|
||||
*
|
||||
* @return length
|
||||
*/
|
||||
public long getContentLength() {
|
||||
return contentLength;
|
||||
}
|
||||
|
||||
public EagletTask getTask() {
|
||||
return task;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user