管灌系统巡查员智能手机App
zuoxiao
2025-01-23 b6f46408cb3dc8b01051953e5c68de6c9195db60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
package com.dayu.pipirrapp.bean.net;
 
import com.dayu.pipirrapp.net.BaseResponse;
import com.luck.picture.lib.entity.LocalMedia;
 
import retrofit2.Call;
 
/**
 * Copyright (C), 2023,
 * Author: zuo
 * Date: 2023-04-15 8:15
 * Description:
 */
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;
    //图片类型
    public final static int IMG_TYPE = 1;
    //视频类型
    public final static int VIDEO_TYPE = 2;
 
    //0正在上传 1上传完成 2上传失败
    int state = 0;
    //上传的文件
    String filePath;
    //失败后重试的次数
    int number;
    //上传后的id
    String postId;
    //上传后的地址
//    String webPath;
    //上传后返回的文件在服务端存储相对路径
    String uoloadFilePath;
    //上传后的哈希值
    int hash;
    //上传后的缩略图
    String webPathZip;
 
    //当前请求
    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;
    }
 
    public void setAdapterPosition(int adapterPosition) {
        this.adapterPosition = adapterPosition;
    }
 
    public int getProgress() {
        return progress;
    }
 
    public void setProgress(int progress) {
        this.progress = progress;
    }
 
 
    public Call<BaseResponse<UploadFileResult>> getThisCall() {
        return thisCall;
    }
 
    public void setThisCall(Call<BaseResponse<UploadFileResult>> thisCall) {
        this.thisCall = thisCall;
    }
 
    public int getNumber() {
        return number;
    }
 
    public void setNumber(int number) {
        this.number = number;
    }
 
    public UplodFileState() {
 
    }
 
    public int getState() {
        return state;
    }
 
    public void setState(int state) {
        this.state = state;
    }
 
    public String getFilePath() {
        return filePath;
    }
 
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
 
    public String getPostId() {
        return postId;
    }
 
    public void setPostId(String postId) {
        this.postId = postId;
    }
 
 
}