From 4f7f99c6ea914bcd38de78bd8371be566026b905 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期三, 26 二月 2025 15:54:14 +0800
Subject: [PATCH] -为按钮和列表项添加波纹效果,以获得更好的视觉反馈 -改进MapFragment中的底部布局动画 -在MapFragment中添加设备状态和RTU地址显示 -更新BaseListResult以支持泛型类型 -为设备数据添加IntakeListResult和IntakeResult -通过数据库支持增强标记位置更新功能 -添加电话拨号意图以分隔标记详细信息 -通过过期检查改进磁贴缓存 -添加问题报告的确认对话框 -更新登录活动以限制用户名长度 -为波纹效果和UI元素添加新颜色 -重构XML布局以使用新的波纹图 -改进MapFragment中的错误处理和用户反馈
---
app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java | 69 +++++++++++++++++++++++++++++-----
1 files changed, 59 insertions(+), 10 deletions(-)
diff --git a/app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java b/app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java
index 9b8f46d..ab5e23b 100644
--- a/app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java
+++ b/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姝e湪涓婁紶 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;
- }
}
--
Gitblit v1.8.0