管灌系统巡查员智能手机App
app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java
@@ -18,6 +18,10 @@
    public final static int STATE_DONE = 1;
    //上传失败
    public final static int STATE_ERROR = 2;
    //图片类型
    public final static int IMG_TYPE = 1;
    //视频类型
    public final static int VIDEO_TYPE = 2;
    //0正在上传 1上传完成 2上传失败
    int state = 0;
@@ -28,13 +32,64 @@
    //上传后的id
    String postId;
    //上传后的地址
    String webPath;
//    String webPath;
    //上传后返回的文件在服务端存储相对路径
    String uoloadFilePath;
    //上传后的哈希值
    int hash;
    //上传后的缩略图
    String webPathZip;
    //当前请求
    Call<BaseResponse> thisCall;
    Call<BaseResponse<UploadFileResult>> thisCall;
    //图片上传进度
    int progress;
    //adapter中的position
    int adapterPosition = -1;
    //上传类型
    int uploadType;
    //扩展名
    String extName;
    public String getUoloadFilePath() {
        return uoloadFilePath;
    }
    public void setUoloadFilePath(String uoloadFilePath) {
        this.uoloadFilePath = uoloadFilePath;
    }
    public int getHash() {
        return hash;
    }
    public void setHash(int hash) {
        this.hash = hash;
    }
    public String getWebPathZip() {
        return webPathZip;
    }
    public void setWebPathZip(String webPathZip) {
        this.webPathZip = webPathZip;
    }
    public String getExtName() {
        return extName;
    }
    public void setExtName(String extName) {
        this.extName = extName;
    }
    public int getUploadType() {
        return uploadType;
    }
    public void setUploadType(int uploadType) {
        this.uploadType = uploadType;
    }
    public int getAdapterPosition() {
        return adapterPosition;
@@ -53,11 +108,11 @@
    }
    public Call<BaseResponse> getThisCall() {
    public Call<BaseResponse<UploadFileResult>> getThisCall() {
        return thisCall;
    }
    public void setThisCall(Call<BaseResponse> thisCall) {
    public void setThisCall(Call<BaseResponse<UploadFileResult>> thisCall) {
        this.thisCall = thisCall;
    }
@@ -97,11 +152,5 @@
        this.postId = postId;
    }
    public String getWebPath() {
        return webPath;
    }
    public void setWebPath(String webPath) {
        this.webPath = webPath;
    }
}