管灌系统巡查员智能手机App
zuoxiao
2024-12-27 65a6bde49652558ada5daa15eca03d5061465a00
app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java
@@ -1,6 +1,7 @@
package com.dayu.pipirrapp.bean.net;
import com.dayu.pipirrapp.net.BaseResponse;
import com.luck.picture.lib.entity.LocalMedia;
import retrofit2.Call;
@@ -10,13 +11,47 @@
 * Date: 2023-04-15 8:15
 * Description:
 */
public class UplodFileState {
    int state = 0;//0正在上传 1上传完成 2上传失败
    String filePath;//上传的文件
    int number;//失败后重试的次数
    String id;//上传后的id
    String webPath;//上传后的地址
    Call<BaseResponse> thisCall;//当前请求
public class UplodFileState extends LocalMedia {
    //正在上传
    public final static int STATE_UPDING = 0;
    //上传完成
    public final static int STATE_DONE = 1;
    //上传失败
    public final static int STATE_ERROR = 2;
    //0正在上传 1上传完成 2上传失败
    int state = 0;
    //上传的文件
    String filePath;
    //失败后重试的次数
    int number;
    //上传后的id
    String postId;
    //上传后的地址
    String webPath;
    //当前请求
    Call<BaseResponse> thisCall;
    //图片上传进度
    int progress;
    //adapter中的position
    int adapterPosition = -1;
    public int getAdapterPosition() {
        return adapterPosition;
    }
    public void setAdapterPosition(int adapterPosition) {
        this.adapterPosition = adapterPosition;
    }
    public int getProgress() {
        return progress;
    }
    public void setProgress(int progress) {
        this.progress = progress;
    }
    public Call<BaseResponse> getThisCall() {
        return thisCall;
@@ -54,12 +89,12 @@
        this.filePath = filePath;
    }
    public String getId() {
        return id;
    public String getPostId() {
        return postId;
    }
    public void setId(String id) {
        this.id = id;
    public void setPostId(String postId) {
        this.postId = postId;
    }
    public String getWebPath() {