-
Notifications
You must be signed in to change notification settings - Fork 532
/
Copy pathDownloadTask.java
41 lines (38 loc) · 1.4 KB
/
DownloadTask.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package vn.hunghd.flutterdownloader;
public class DownloadTask {
int primaryId;
String taskId;
int status;
int progress;
String title;
String url;
String filename;
String savedDir;
String headers;
String mimeType;
boolean resumable;
boolean showNotification;
boolean openFileFromNotification;
long timeCreated;
DownloadTask(int primaryId, String taskId, int status, int progress, String title, String url, String filename, String savedDir,
String headers, String mimeType, boolean resumable, boolean showNotification, boolean openFileFromNotification, long timeCreated) {
this.primaryId = primaryId;
this.taskId = taskId;
this.status = status;
this.progress = progress;
this.title = title;
this.url = url;
this.filename = filename;
this.savedDir = savedDir;
this.headers = headers;
this.mimeType = mimeType;
this.resumable = resumable;
this.showNotification = showNotification;
this.openFileFromNotification = openFileFromNotification;
this.timeCreated = timeCreated;
}
@Override
public String toString() {
return "DownloadTask{taskId=" + taskId + ",status=" + status + ",progress=" + progress + ",title=" + title + ",url=" + url + ",filename=" + filename + ",savedDir=" + savedDir + ",headers=" + headers + "}";
}
}