@quec/rn-device-module 1.9.19 → 2.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +3 -0
- package/QuecRNDeviceModule.podspec +54 -0
- package/README.md +1535 -1043
- package/android/build.gradle +119 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +23 -0
- package/android/gradlew +185 -0
- package/android/gradlew.bat +89 -0
- package/android/old-info.properties +2 -0
- package/android/proguard-rules.pro +21 -0
- package/android/publishInfo.properties +4 -0
- package/android/settings.gradle +3 -0
- package/android/src/main/AndroidManifest.xml +6 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/IQuecRNDeviceModuleSpec.java +1352 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/QuecRNDeviceModule.java +2423 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/QuecRNDeviceModulePackage.java +23 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/DataInfo.java +25 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/DataRes.java +31 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/DeviceDpsUpdateModel.java +18 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/ModelBridgeBasic.java +86 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/OtaUpgradePlanModel.java +292 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/ShareInfo.java +166 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/UserInfo.java +137 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/WriteCmdWithId.java +10 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/AnalysisChannelDataUtils.java +82 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/DataConvertUtils.kt +130 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/ErrorCode.java +26 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/ErrorUtils.java +11 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/IpcUtil.java +75 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/NetUtils.java +85 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/OnConnectListener.java +22 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/ParamsValueUtils.java +79 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/QuecIotChannelMode.java +8 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/ReactNativeJson.java +199 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/ResponseUtils.java +156 -0
- package/android/src/main/res/values/strings.xml +4 -0
- package/android/src/main/res/values-en/strings.xml +4 -0
- package/android/src/main/res/values-zh/strings.xml +4 -0
- package/android/src/test/java/com/quectel/smart/template/ExampleUnitTest.java +17 -0
- package/build.gradle +1 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/ios/Example/Podfile +17 -0
- package/ios/Example/QuecRNDeviceModule/AppDelegate.h +13 -0
- package/ios/Example/QuecRNDeviceModule/AppDelegate.m +46 -0
- package/ios/Example/QuecRNDeviceModule/Base.lproj/LaunchScreen.storyboard +31 -0
- package/ios/Example/QuecRNDeviceModule/Base.lproj/Main.storyboard +31 -0
- package/ios/Example/QuecRNDeviceModule/Images.xcassets/AppIcon.appiconset/Contents.json +98 -0
- package/ios/Example/QuecRNDeviceModule/QuecRNDeviceModule-Info.plist +40 -0
- package/ios/Example/QuecRNDeviceModule/QuecRNDeviceModule-Prefix.pch +16 -0
- package/ios/Example/QuecRNDeviceModule/ViewController.h +12 -0
- package/ios/Example/QuecRNDeviceModule/ViewController.m +29 -0
- package/ios/Example/QuecRNDeviceModule/en.lproj/InfoPlist.strings +2 -0
- package/ios/Example/QuecRNDeviceModule/main.m +15 -0
- package/ios/Example/QuecRNDeviceModule.xcodeproj/project.pbxproj +583 -0
- package/ios/Example/QuecRNDeviceModule.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Example/QuecRNDeviceModule.xcodeproj/xcshareddata/xcschemes/QuecRNDeviceModule-Example.xcscheme +101 -0
- package/ios/Example/QuecRNDeviceModule.xcworkspace/contents.xcworkspacedata +10 -0
- package/ios/Example/QuecRNDeviceModule.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/LICENSE +4 -0
- package/ios/QuecRNDeviceModule/Assets/.gitkeep +0 -0
- package/ios/QuecRNDeviceModule/Classes/QuecRNDeviceModule+Ext.h +27 -0
- package/ios/QuecRNDeviceModule/Classes/QuecRNDeviceModule+Impl.h +1137 -0
- package/ios/QuecRNDeviceModule/Classes/QuecRNDeviceModule+Impl.m +1524 -0
- package/ios/QuecRNDeviceModule/Classes/QuecRNDeviceModule.h +157 -0
- package/ios/QuecRNDeviceModule/Classes/QuecRNDeviceModule.m +721 -0
- package/ios/README.md +20 -0
- package/{.prettierrc.js → js/.prettierrc.js} +11 -11
- package/js/README.md +1535 -0
- package/js/package.json +25 -0
- package/{src → js/src}/index.ts +12 -12
- package/{src → js/src}/module.ts +1332 -939
- package/{src → js/src}/viewCommon.ts +3 -3
- package/js/tsconfig.json +26 -0
- package/js/yarn.lock +4 -0
- package/package.json +10 -25
- package/plugin.ts +1180 -0
- package/settings.gradle +2 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
package com.quectel.smart.rnplugin.quecrndevicemodule;
|
|
2
|
+
import com.facebook.react.ReactPackage;
|
|
3
|
+
import com.facebook.react.bridge.NativeModule;
|
|
4
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
5
|
+
import com.facebook.react.uimanager.ViewManager;
|
|
6
|
+
import java.util.Collections;
|
|
7
|
+
import java.util.List;
|
|
8
|
+
|
|
9
|
+
public class QuecRNDeviceModulePackage implements ReactPackage {
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@Override
|
|
13
|
+
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
|
14
|
+
return Collections.<NativeModule>singletonList(new QuecRNDeviceModule(reactContext));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@Override
|
|
19
|
+
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
20
|
+
return Collections.emptyList();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/DataInfo.java
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
package com.quectel.smart.rnplugin.quecrndevicemodule.bean;
|
|
2
|
+
|
|
3
|
+
import java.io.Serializable;
|
|
4
|
+
|
|
5
|
+
public class DataInfo implements Serializable {
|
|
6
|
+
|
|
7
|
+
private ShareInfo shareInfo;
|
|
8
|
+
private UserInfo userInfo;
|
|
9
|
+
|
|
10
|
+
public ShareInfo getShareInfo() {
|
|
11
|
+
return shareInfo;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public void setShareInfo(ShareInfo shareInfo) {
|
|
15
|
+
this.shareInfo = shareInfo;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
public UserInfo getUserInfo() {
|
|
19
|
+
return userInfo;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public void setUserInfo(UserInfo userInfo) {
|
|
23
|
+
this.userInfo = userInfo;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
package com.quectel.smart.rnplugin.quecrndevicemodule.bean;
|
|
2
|
+
|
|
3
|
+
public class DataRes<T> {
|
|
4
|
+
private int code;
|
|
5
|
+
private String msg;
|
|
6
|
+
private T data;
|
|
7
|
+
|
|
8
|
+
public int getCode() {
|
|
9
|
+
return code;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public void setCode(int code) {
|
|
13
|
+
this.code = code;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
public String getMsg() {
|
|
17
|
+
return msg;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public void setMsg(String msg) {
|
|
21
|
+
this.msg = msg;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public T getData() {
|
|
25
|
+
return data;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public void setData(T data) {
|
|
29
|
+
this.data = data;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
package com.quectel.smart.rnplugin.quecrndevicemodule.bean;
|
|
2
|
+
|
|
3
|
+
import com.quectel.basic.common.entity.QuecBaseModel;
|
|
4
|
+
import com.quectel.sdk.iot.channel.kit.model.QuecIotDataPointsModel;
|
|
5
|
+
|
|
6
|
+
import java.io.Serializable;
|
|
7
|
+
import java.util.List;
|
|
8
|
+
|
|
9
|
+
public class DeviceDpsUpdateModel implements Serializable, QuecBaseModel {
|
|
10
|
+
public int type;
|
|
11
|
+
public String pk;
|
|
12
|
+
public String dk;
|
|
13
|
+
|
|
14
|
+
public int action;
|
|
15
|
+
public List<QuecIotDataPointsModel.DataModel> dps;
|
|
16
|
+
public String transparent;
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//package com.quectel.smart.rnplugin.quecrndevicemodule.bean;
|
|
2
|
+
//
|
|
3
|
+
//import java.io.Serializable;
|
|
4
|
+
//import java.util.List;
|
|
5
|
+
//import java.util.Objects;
|
|
6
|
+
//
|
|
7
|
+
//public class ModelBridgeBasic<T> implements Serializable {
|
|
8
|
+
//
|
|
9
|
+
// public int id;
|
|
10
|
+
// public String code;
|
|
11
|
+
// public String dataType;
|
|
12
|
+
// public String name;
|
|
13
|
+
// public String subType;
|
|
14
|
+
// public String attributeValue = "";
|
|
15
|
+
//
|
|
16
|
+
// public String getAttributeValue() {
|
|
17
|
+
// return attributeValue;
|
|
18
|
+
// }
|
|
19
|
+
//
|
|
20
|
+
// public void setAttributeValue(String attributeValue) {
|
|
21
|
+
// this.attributeValue = attributeValue;
|
|
22
|
+
// }
|
|
23
|
+
//
|
|
24
|
+
// public List<T> specs = null;
|
|
25
|
+
//
|
|
26
|
+
// public String getSubType() {
|
|
27
|
+
// return subType;
|
|
28
|
+
// }
|
|
29
|
+
//
|
|
30
|
+
// public void setSubType(String subType) {
|
|
31
|
+
// this.subType = subType;
|
|
32
|
+
// }
|
|
33
|
+
//
|
|
34
|
+
// public int getId() {
|
|
35
|
+
// return id;
|
|
36
|
+
// }
|
|
37
|
+
//
|
|
38
|
+
// public void setId(int id) {
|
|
39
|
+
// this.id = id;
|
|
40
|
+
// }
|
|
41
|
+
//
|
|
42
|
+
// public String getCode() {
|
|
43
|
+
// return code;
|
|
44
|
+
// }
|
|
45
|
+
//
|
|
46
|
+
// public void setCode(String code) {
|
|
47
|
+
// this.code = code;
|
|
48
|
+
// }
|
|
49
|
+
//
|
|
50
|
+
// public String getDataType() {
|
|
51
|
+
// return dataType;
|
|
52
|
+
// }
|
|
53
|
+
//
|
|
54
|
+
// public void setDataType(String dataType) {
|
|
55
|
+
// this.dataType = dataType;
|
|
56
|
+
// }
|
|
57
|
+
//
|
|
58
|
+
// public String getName() {
|
|
59
|
+
// return name;
|
|
60
|
+
// }
|
|
61
|
+
//
|
|
62
|
+
// public void setName(String name) {
|
|
63
|
+
// this.name = name;
|
|
64
|
+
// }
|
|
65
|
+
//
|
|
66
|
+
// public List<T> getSpecs() {
|
|
67
|
+
// return specs;
|
|
68
|
+
// }
|
|
69
|
+
//
|
|
70
|
+
// public void setSpecs(List<T> specs) {
|
|
71
|
+
// this.specs = specs;
|
|
72
|
+
// }
|
|
73
|
+
//
|
|
74
|
+
// @Override
|
|
75
|
+
// public boolean equals(Object o) {
|
|
76
|
+
// if (this == o) return true;
|
|
77
|
+
// if (o == null || getClass() != o.getClass()) return false;
|
|
78
|
+
// ModelBridgeBasic<?> that = (ModelBridgeBasic<?>) o;
|
|
79
|
+
// return Objects.equals(code, that.code);
|
|
80
|
+
// }
|
|
81
|
+
//
|
|
82
|
+
// @Override
|
|
83
|
+
// public int hashCode() {
|
|
84
|
+
// return Objects.hash(code);
|
|
85
|
+
// }
|
|
86
|
+
//}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
package com.quectel.smart.rnplugin.quecrndevicemodule.bean;
|
|
2
|
+
|
|
3
|
+
import com.quectel.basic.common.entity.QuecBaseModel;
|
|
4
|
+
|
|
5
|
+
import java.io.Serializable;
|
|
6
|
+
import java.util.List;
|
|
7
|
+
|
|
8
|
+
public class OtaUpgradePlanModel implements Serializable, QuecBaseModel {
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
private String deviceModel;//设备详情
|
|
12
|
+
private long appointEndTime;
|
|
13
|
+
private long appointStartTime;
|
|
14
|
+
private int autoUpgrade;
|
|
15
|
+
private List<ComVerListDTO> comVerList;
|
|
16
|
+
private String dataType;
|
|
17
|
+
private int deviceStatus;
|
|
18
|
+
private String deviceStatusDesc;
|
|
19
|
+
private long planEndTime;
|
|
20
|
+
private int planId;
|
|
21
|
+
private String planName;
|
|
22
|
+
private long planStartTime;
|
|
23
|
+
private int userConfirmStatus;
|
|
24
|
+
private String userConfirmStatusDesc;
|
|
25
|
+
/**qb_version表版本描述*/
|
|
26
|
+
private String versionInfo;
|
|
27
|
+
private String upgradeVersionInfo;
|
|
28
|
+
|
|
29
|
+
public long getAppointEndTime() {
|
|
30
|
+
return appointEndTime;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public void setAppointEndTime(long appointEndTime) {
|
|
34
|
+
this.appointEndTime = appointEndTime;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public long getAppointStartTime() {
|
|
38
|
+
return appointStartTime;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public void setAppointStartTime(long appointStartTime) {
|
|
42
|
+
this.appointStartTime = appointStartTime;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public int getAutoUpgrade() {
|
|
46
|
+
return autoUpgrade;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public void setAutoUpgrade(int autoUpgrade) {
|
|
50
|
+
this.autoUpgrade = autoUpgrade;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public List<ComVerListDTO> getComVerList() {
|
|
54
|
+
return comVerList;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public void setComVerList(List<ComVerListDTO> comVerList) {
|
|
58
|
+
this.comVerList = comVerList;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public String getDataType() {
|
|
62
|
+
return dataType;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public void setDataType(String dataType) {
|
|
66
|
+
this.dataType = dataType;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public int getDeviceStatus() {
|
|
70
|
+
return deviceStatus;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
public void setDeviceStatus(int deviceStatus) {
|
|
74
|
+
this.deviceStatus = deviceStatus;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public String getDeviceStatusDesc() {
|
|
78
|
+
return deviceStatusDesc;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
public void setDeviceStatusDesc(String deviceStatusDesc) {
|
|
82
|
+
this.deviceStatusDesc = deviceStatusDesc;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
public long getPlanEndTime() {
|
|
86
|
+
return planEndTime;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
public void setPlanEndTime(long planEndTime) {
|
|
90
|
+
this.planEndTime = planEndTime;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
public int getPlanId() {
|
|
94
|
+
return planId;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public void setPlanId(int planId) {
|
|
98
|
+
this.planId = planId;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
public String getPlanName() {
|
|
102
|
+
return planName;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public void setPlanName(String planName) {
|
|
106
|
+
this.planName = planName;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
public long getPlanStartTime() {
|
|
110
|
+
return planStartTime;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
public void setPlanStartTime(int planStartTime) {
|
|
114
|
+
this.planStartTime = planStartTime;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
public int getUserConfirmStatus() {
|
|
118
|
+
return userConfirmStatus;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
public void setUserConfirmStatus(int userConfirmStatus) {
|
|
122
|
+
this.userConfirmStatus = userConfirmStatus;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
public String getUserConfirmStatusDesc() {
|
|
126
|
+
return userConfirmStatusDesc;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
public void setUserConfirmStatusDesc(String userConfirmStatusDesc) {
|
|
130
|
+
this.userConfirmStatusDesc = userConfirmStatusDesc;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
public String getVersionInfo() {
|
|
134
|
+
return versionInfo;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
public void setVersionInfo(String versionInfo) {
|
|
138
|
+
this.versionInfo = versionInfo;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
public String getUpgradeVersionInfo() {
|
|
142
|
+
return upgradeVersionInfo;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
public void setUpgradeVersionInfo(String upgradeVersionInfo) {
|
|
146
|
+
this.upgradeVersionInfo = upgradeVersionInfo;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
public String getDeviceModel() {
|
|
150
|
+
return deviceModel;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
public void setDeviceModel(String deviceModel) {
|
|
154
|
+
this.deviceModel = deviceModel;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
public void setPlanStartTime(long planStartTime) {
|
|
158
|
+
this.planStartTime = planStartTime;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
public static class ComVerListDTO implements Serializable {
|
|
162
|
+
private int battery;
|
|
163
|
+
private String comNo;
|
|
164
|
+
/**
|
|
165
|
+
* 组件类型(0:模组,1:mcu)
|
|
166
|
+
*/
|
|
167
|
+
private int comType;
|
|
168
|
+
/**
|
|
169
|
+
* 组件当前版本
|
|
170
|
+
*/
|
|
171
|
+
private String cver;
|
|
172
|
+
private int signal;
|
|
173
|
+
private String sort;
|
|
174
|
+
private int space;
|
|
175
|
+
private Boolean success;
|
|
176
|
+
/**
|
|
177
|
+
* 源版本
|
|
178
|
+
*/
|
|
179
|
+
private String sver;
|
|
180
|
+
/**
|
|
181
|
+
* 目标版本
|
|
182
|
+
*/
|
|
183
|
+
private String tver;
|
|
184
|
+
private int verId;
|
|
185
|
+
private String versionInfo;
|
|
186
|
+
private Boolean versionMatch;
|
|
187
|
+
|
|
188
|
+
public int getBattery() {
|
|
189
|
+
return battery;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
public void setBattery(int battery) {
|
|
193
|
+
this.battery = battery;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
public String getComNo() {
|
|
197
|
+
return comNo;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
public void setComNo(String comNo) {
|
|
201
|
+
this.comNo = comNo;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
public int getComType() {
|
|
205
|
+
return comType;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
public void setComType(int comType) {
|
|
209
|
+
this.comType = comType;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
public String getCver() {
|
|
213
|
+
return cver;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
public void setCver(String cver) {
|
|
217
|
+
this.cver = cver;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
public int getSignal() {
|
|
221
|
+
return signal;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
public void setSignal(int signal) {
|
|
225
|
+
this.signal = signal;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
public String getSort() {
|
|
229
|
+
return sort;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
public void setSort(String sort) {
|
|
233
|
+
this.sort = sort;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
public int getSpace() {
|
|
237
|
+
return space;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
public void setSpace(int space) {
|
|
241
|
+
this.space = space;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
public Boolean getSuccess() {
|
|
245
|
+
return success;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
public void setSuccess(Boolean success) {
|
|
249
|
+
this.success = success;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
public String getSver() {
|
|
253
|
+
return sver;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
public void setSver(String sver) {
|
|
257
|
+
this.sver = sver;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
public String getTver() {
|
|
261
|
+
return tver;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
public void setTver(String tver) {
|
|
265
|
+
this.tver = tver;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
public int getVerId() {
|
|
269
|
+
return verId;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
public void setVerId(int verId) {
|
|
273
|
+
this.verId = verId;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
public String getVersionInfo() {
|
|
277
|
+
return versionInfo;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
public void setVersionInfo(String versionInfo) {
|
|
281
|
+
this.versionInfo = versionInfo;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
public Boolean getVersionMatch() {
|
|
285
|
+
return versionMatch;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
public void setVersionMatch(Boolean versionMatch) {
|
|
289
|
+
this.versionMatch = versionMatch;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/ShareInfo.java
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
package com.quectel.smart.rnplugin.quecrndevicemodule.bean;
|
|
2
|
+
|
|
3
|
+
import java.io.Serializable;
|
|
4
|
+
|
|
5
|
+
public class ShareInfo implements Serializable {
|
|
6
|
+
private int shareId;
|
|
7
|
+
|
|
8
|
+
private String shareCode;
|
|
9
|
+
|
|
10
|
+
private String deviceName;
|
|
11
|
+
|
|
12
|
+
private String pk;
|
|
13
|
+
|
|
14
|
+
private String dk;
|
|
15
|
+
|
|
16
|
+
private int coverMark;
|
|
17
|
+
|
|
18
|
+
private String ownerUid;
|
|
19
|
+
|
|
20
|
+
private String shareUid;
|
|
21
|
+
|
|
22
|
+
private String acceptingExpireAt;
|
|
23
|
+
|
|
24
|
+
private String sharingExpireAt;
|
|
25
|
+
|
|
26
|
+
private String shareTime;
|
|
27
|
+
|
|
28
|
+
private String acceptTime;
|
|
29
|
+
|
|
30
|
+
private String deleteTime;
|
|
31
|
+
|
|
32
|
+
private String updateTime;
|
|
33
|
+
|
|
34
|
+
private int shareStatus;
|
|
35
|
+
|
|
36
|
+
private String failureCause;
|
|
37
|
+
|
|
38
|
+
public void setShareId(int shareId) {
|
|
39
|
+
this.shareId = shareId;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public int getShareId() {
|
|
43
|
+
return this.shareId;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public void setShareCode(String shareCode) {
|
|
47
|
+
this.shareCode = shareCode;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public String getShareCode() {
|
|
51
|
+
return this.shareCode;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public void setDeviceName(String deviceName) {
|
|
55
|
+
this.deviceName = deviceName;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public String getDeviceName() {
|
|
59
|
+
return this.deviceName;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public void setPk(String pk) {
|
|
63
|
+
this.pk = pk;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public String getPk() {
|
|
67
|
+
return this.pk;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public void setDk(String dk) {
|
|
71
|
+
this.dk = dk;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public String getDk() {
|
|
75
|
+
return this.dk;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
public void setCoverMark(int coverMark) {
|
|
79
|
+
this.coverMark = coverMark;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
public int getCoverMark() {
|
|
83
|
+
return this.coverMark;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
public void setOwnerUid(String ownerUid) {
|
|
87
|
+
this.ownerUid = ownerUid;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public String getOwnerUid() {
|
|
91
|
+
return this.ownerUid;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
public void setShareUid(String shareUid) {
|
|
95
|
+
this.shareUid = shareUid;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
public String getShareUid() {
|
|
99
|
+
return this.shareUid;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
public void setAcceptingExpireAt(String acceptingExpireAt) {
|
|
103
|
+
this.acceptingExpireAt = acceptingExpireAt;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
public String getAcceptingExpireAt() {
|
|
107
|
+
return this.acceptingExpireAt;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
public void setSharingExpireAt(String sharingExpireAt) {
|
|
111
|
+
this.sharingExpireAt = sharingExpireAt;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
public String getSharingExpireAt() {
|
|
115
|
+
return this.sharingExpireAt;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
public void setShareTime(String shareTime) {
|
|
119
|
+
this.shareTime = shareTime;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
public String getShareTime() {
|
|
123
|
+
return this.shareTime;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
public void setAcceptTime(String acceptTime) {
|
|
127
|
+
this.acceptTime = acceptTime;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
public String getAcceptTime() {
|
|
131
|
+
return this.acceptTime;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
public void setDeleteTime(String deleteTime) {
|
|
135
|
+
this.deleteTime = deleteTime;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
public String getDeleteTime() {
|
|
139
|
+
return this.deleteTime;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
public void setUpdateTime(String updateTime) {
|
|
143
|
+
this.updateTime = updateTime;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
public String getUpdateTime() {
|
|
147
|
+
return this.updateTime;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
public void setShareStatus(int shareStatus) {
|
|
151
|
+
this.shareStatus = shareStatus;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
public int getShareStatus() {
|
|
155
|
+
return this.shareStatus;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
public void setFailureCause(String failureCause) {
|
|
159
|
+
this.failureCause = failureCause;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
public String getFailureCause() {
|
|
163
|
+
return this.failureCause;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
}
|