99 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			99 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| package com.novelbook.android.db;
 | |
| 
 | |
| import org.litepal.annotation.Column;
 | |
| import org.litepal.crud.LitePalSupport;
 | |
| 
 | |
| import java.io.Serializable;
 | |
| 
 | |
| public class DownloadTask extends LitePalSupport implements Serializable {
 | |
| 
 | |
|     private int id;
 | |
|     private int novelId;
 | |
|     private String novelTitle;
 | |
|     private String domain;
 | |
|     private String domainName;
 | |
|     @Column( defaultValue = "0")
 | |
|     private int status; //0 未完成 1 完成
 | |
|     private int totalChapts;
 | |
|     private int finishedChpats;
 | |
|     private DownStatus downSatus =DownStatus.初始状态;//0 队列外 1 队列内
 | |
| 
 | |
|     public DownStatus getDownSatus() {
 | |
|         return downSatus;
 | |
|     }
 | |
| 
 | |
|     public void setDownSatus(DownStatus downSatus) {
 | |
|         this.downSatus = downSatus;
 | |
|     }
 | |
| 
 | |
|     public String getNovelTitle() {
 | |
|         return novelTitle;
 | |
|     }
 | |
| 
 | |
|     public void setNovelTitle(String novelTitle) {
 | |
|         this.novelTitle = novelTitle;
 | |
|     }
 | |
| 
 | |
|     public String getDomainName() {
 | |
|         return domainName;
 | |
|     }
 | |
| 
 | |
|     public void setDomainName(String domainName) {
 | |
|         this.domainName = domainName;
 | |
|     }
 | |
| 
 | |
|     public int getTotalChapts() {
 | |
|         return totalChapts;
 | |
|     }
 | |
| 
 | |
|     public void setTotalChapts(int totalChapts) {
 | |
|         this.totalChapts = totalChapts;
 | |
|     }
 | |
| 
 | |
|     public int getFinishedChpats() {
 | |
|         return finishedChpats;
 | |
|     }
 | |
| 
 | |
|     public void setFinishedChpats(int finishedChpats) {
 | |
|         this.finishedChpats = finishedChpats;
 | |
|     }
 | |
| 
 | |
|     public int getId() {
 | |
|         return id;
 | |
|     }
 | |
| 
 | |
|     public void setId(int id) {
 | |
|         this.id = id;
 | |
|     }
 | |
| 
 | |
|     public int getNovelId() {
 | |
|         return novelId;
 | |
|     }
 | |
| 
 | |
|     public void setNovelId(int novelId) {
 | |
|         this.novelId = novelId;
 | |
|     }
 | |
| 
 | |
|     public String getDomain() {
 | |
|         return domain;
 | |
|     }
 | |
| 
 | |
|     public void setDomain(String domain) {
 | |
|         this.domain = domain;
 | |
|     }
 | |
| 
 | |
|     public int getStatus() {
 | |
|         return status;
 | |
|     }
 | |
| 
 | |
|     public void setStatus(int status) {
 | |
|         this.status = status;
 | |
|     }
 | |
| 
 | |
|     public  static enum DownStatus{
 | |
|        初始状态,暂停下载, 正在下载,排队中,下载完成
 | |
|     }
 | |
| 
 | |
| }
 | |
| 
 |