DownloadInfo.java 2.03 KB
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;
    }

}