| | |
| | | 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; |
| | |
| | | int progress; |
| | | //adapter中的position |
| | | int adapterPosition = -1; |
| | | //上传类型 |
| | | int uploadType; |
| | | //扩展名 |
| | | String extName; |
| | | |
| | | 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; |