BindInfo.java
5.29 KB
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
package cn.com.glsx.dj.weapp.vo;
import java.io.Serializable;
/**
* 用户绑定信息类
* @author yangjia
* @date 2019/10/17
*/
@SuppressWarnings("serial")
public class BindInfo implements Serializable{
private Integer id;
private Integer accountId;
private Integer userId;
private Integer deviceId;
private Integer deviceType;
private Short isMain;
private String sn;
private String deviceTypeName;
/**套餐到期日期*/
private String validateEnd;
/**设备剩余流量*/
private String surplusFlow;
/**是否已实名认证*/
private boolean isRealName;
private String mobile;
private String plateNumber;
/**卡类型*/
private String cardType;
private String imsi;
/**实名认证的结果*/
private String realPass;
/**厂商码*/
private String manufacturer;
private Integer sort=0;
public BindInfo() {
}
public BindInfo(AccountBinding accountBind) {
this.id = accountBind.getId();
this.accountId = accountBind.getAccountId();
this.userId = accountBind.getUserId();
this.deviceId = accountBind.getDeviceId();
this.deviceType = accountBind.getDeviceType();
this.isMain = accountBind.getIsMain();
this.sn = accountBind.getSn();
this.deviceTypeName = getDeviceTypeName();
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getAccountId() {
return accountId;
}
public void setAccountId(Integer accountId) {
this.accountId = accountId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getDeviceId() {
return deviceId;
}
public void setDeviceId(Integer deviceId) {
this.deviceId = deviceId;
}
public Integer getDeviceType() {
return deviceType;
}
public void setDeviceType(Integer deviceType) {
this.deviceType = deviceType;
}
public Short getIsMain() {
return isMain;
}
public void setIsMain(Short isMain) {
this.isMain = isMain;
}
public String getSn() {
return sn;
}
public void setSn(String sn) {
this.sn = sn;
}
public String getDeviceTypeName() {
if (this.getDeviceType() == null) {
return "";
}
switch (this.getDeviceType()) {
case 12370:
return "DDBOX";
case 12364:
return "飞行器";
case 8:
return "GPS";
case 6:
return "行车记录仪";
case 5:
return "TBOX(2G)";
case 4:
return "追踪器";
case 3:
return "电子狗";
case 2:
return "云导航";
case 1:
return "驾宝盒子";
case 12134:
return "智能云镜";
default:
return "";
}
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getValidateEnd() {
return validateEnd;
}
public void setValidateEnd(String validateEnd) {
this.validateEnd = validateEnd;
}
public String getSurplusFlow() {
return surplusFlow;
}
public void setSurplusFlow(String surplusFlow) {
this.surplusFlow = surplusFlow;
}
public boolean isRealName() {
return isRealName;
}
public void setRealName(boolean isRealName) {
this.isRealName = isRealName;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getPlateNumber() {
return plateNumber;
}
public void setPlateNumber(String plateNumber) {
this.plateNumber = plateNumber;
}
public String getCardType() {
return cardType;
}
public void setCardType(String cardType) {
this.cardType = cardType;
}
public String getImsi() {
return imsi;
}
public void setImsi(String imsi) {
this.imsi = imsi;
}
public String getRealPass() {
return realPass;
}
public void setRealPass(String realPass) {
this.realPass = realPass;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getManufacturer() {
return manufacturer;
}
public void setManufacturer(String manufacturer) {
this.manufacturer = manufacturer;
}
@Override
public String toString() {
return "BindInfo [id=" + id + ", accountId=" + accountId + ", userId=" + userId + ", deviceId=" + deviceId + ", deviceType=" + deviceType + ", isMain=" + isMain + ", sn=" + sn + ", deviceTypeName=" + deviceTypeName + ", validateEnd=" + validateEnd + ", surplusFlow=" + surplusFlow + ", isRealName=" + isRealName + ", mobile=" + mobile + ", plateNumber=" + plateNumber + ", cardType=" + cardType + ", imsi=" + imsi + ", realPass=" + realPass + ", sort=" + sort + ", manufacturer=" + manufacturer + "]";
}
}