视频预加载
This commit is contained in:
41
app/src/main/java/com/gh/download/cache/CacheInfo.java
vendored
Normal file
41
app/src/main/java/com/gh/download/cache/CacheInfo.java
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
package com.gh.download.cache;
|
||||
|
||||
public class CacheInfo {
|
||||
public static final long TOTAL_ERROR = -1;//获取进度失败
|
||||
private String url;
|
||||
private long total;
|
||||
private long progress;
|
||||
private String fileName;
|
||||
|
||||
public CacheInfo(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public long getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(long total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public long getProgress() {
|
||||
return progress;
|
||||
}
|
||||
|
||||
public void setProgress(long progress) {
|
||||
this.progress = progress;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user