DownloadInfo.java
2.03 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package com.cnlive.downloadfile.download.limit;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import java.io.Serializable;
@Entity
public class DownloadInfo implements Serializable {
@Id
private long id;
@Unique
private String url;
private String fileName;
private String downloadStatus;
private long total;
private long progress;
private String title;
static final long serialVersionUID = 42L;
@Generated(hash = 1825047729)
public DownloadInfo(long id, String url, String fileName, String downloadStatus,
long total, long progress, String title) {
this.id = id;
this.url = url;
this.fileName = fileName;
this.downloadStatus = downloadStatus;
this.total = total;
this.progress = progress;
this.title = title;
}
@Generated(hash = 327086747)
public DownloadInfo() {
}
public long getId() {
return this.id;
}
public void setId(long id) {
this.id = id;
}
public String getUrl() {
return this.url;
}
public void setUrl(String url) {
this.url = url;
}
public String getFileName() {
return this.fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getDownloadStatus() {
return this.downloadStatus;
}
public void setDownloadStatus(String downloadStatus) {
this.downloadStatus = downloadStatus;
}
public long getTotal() {
return this.total;
}
public void setTotal(long total) {
this.total = total;
}
public long getProgress() {
return this.progress;
}
public void setProgress(long progress) {
this.progress = progress;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
}