PersonalInfoBean.java
11.7 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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
package com.wd.foundation.bean.response;
import android.text.TextUtils;
import com.wd.foundation.bean.custom.content.PeopleMasterBean;
import com.wd.foundation.wdkitcore.tools.StringUtils;
/**
* @author ouyang
* @date 2023/5/15
*/
public class PersonalInfoBean extends PeopleMasterBean {
/**
* 创作者ID
* 等同于父类的rmhId
* 接口字段不一致
*/
private String creatorId;
/**
* 用户名
* 等同于父类的rmhName
*/
private String userName;
/**
* 头像路径
* 等同于父类的rmhHeadUrl
*/
private String headPhotoUrl;
/**
* 个人简介
* 等同于父类的rmhDesc
*/
private String introduction;
/**
* 等级头像框,需要自己设置,本地的
*/
private String levelHeadIcon;
/**
* 是否可关注:0 否 1 是 【若为内容源账号且开关关闭,不可关注】
* 等同于父类的cnIsAttention
*/
private String isAttention;
/**
* 主页是否可见 0-不可以 1-可以
* 等同于父类的cnMainControl
*/
private String mainControl;
/**
* 分享地址
*/
private String shareUrl;
/**
* 从我的页面调到个人主页的类型 1:评论 2:作品
*/
private int fromMineType;
/**
* 【同双端禁止发稿】账号是否被禁言 默认0,0:正常,1:禁言
* 0:正常,1:禁言
*/
private String speakControl;
/**
* 登录用户评论开关 0 正常,1 关闭
*/
private String cnCommentAllowed;
/**
* 直播权限 0 有 ,1 无
*/
private String liveSwitch;
/**
* 视频生产权限 默认0,0:正常,1:关闭
*/
private String videoCreation;
/**
* 视频合集生产权限 默认0,0:正常,1:关闭
*/
private String videoCollectionCreation;
/**
* 文章生产权限 默认1,0:正常,1:关闭
*/
private String articleCreation;
/**
* 图集生产权限 默认1,0:正常,1:关闭
*/
private String pictureCollectionCreation;
/**
* 动态生产权限 默认1,0:正常,1:关闭
*/
private String dynamicCreation;
/**
* 领域/官方认证信息
*/
private String categoryAuth;
/**
* 认证id:1蓝2黄
*/
private int authId;
/**
* 中文版内容分发权限 0:正常,1:关闭
*/
private String cnContentPublish = "0";
/**
* 评论量
*/
private String commentNum;
/**
* 关注量
*/
private String attentionNum;
/**
* 收藏量
*/
private String collectNum;
/**
* 浏览量
*/
private String browseNum;
/**
* 预约量
*/
private String reserveNum;
/**
* 所属省份(userType!=1时,客户端根据code自己解析处理)
*/
private String province;
/**
* 所属地市(userType!=1时,客户端根据code自己解析处理)
*/
private String city;
/**
* 所属区县(userType!=1时,客户端根据code自己解析处理)
*/
private String district;
/**
* 最近登录用户IP归属地
*/
private String region;
/**
* 身份认证
*/
private String authPersonal;
/**
* 账号注册时间
*/
private String registTime;
/**
* 分享数
*/
private String shareNum;
private String traceId;
private String traceInfo;
private String sceneId;
private String itemId;
private String itemType;
/**
* 性别
*/
private String sex;
public String getAuthPersonal() {
return authPersonal;
}
public void setAuthPersonal(String authPersonal) {
this.authPersonal = authPersonal;
}
public int getAuthId() {
return authId;
}
public void setAuthId(int authId) {
this.authId = authId;
}
public String getCategoryAuth() {
return categoryAuth;
}
public void setCategoryAuth(String categoryAuth) {
this.categoryAuth = categoryAuth;
}
public String getSceneId() {
return sceneId;
}
public void setSceneId(String sceneId) {
this.sceneId = sceneId;
}
public String getAttentionNum() {
return attentionNum;
}
public void setAttentionNum(String attentionNum) {
this.attentionNum = attentionNum;
}
public String getCommentNum() {
return commentNum;
}
public void setCommentNum(String commentNum) {
this.commentNum = commentNum;
}
public String getCollectNum() {
return collectNum;
}
public void setCollectNum(String collectNum) {
this.collectNum = collectNum;
}
public String getBrowseNum() {
return browseNum;
}
public void setBrowseNum(String browseNum) {
this.browseNum = browseNum;
}
public String getReserveNum() {
return reserveNum;
}
public void setReserveNum(String reserveNum) {
this.reserveNum = reserveNum;
}
public void setRegion(String region) {
this.region = region;
}
public String getItemId() {
return itemId;
}
public void setItemId(String itemId) {
this.itemId = itemId;
}
public String getItemType() {
return itemType;
}
public void setItemType(String itemType) {
this.itemType = itemType;
}
private String getHeadPhotoUrl() {
if(headPhotoUrl == null){
return "";
}
return headPhotoUrl;
}
public void setHeadPhotoUrl(String headPhotoUrl) {
this.headPhotoUrl = headPhotoUrl;
}
private String getIntroduction() {
return introduction;
}
public void setIntroduction(String introduction) {
this.introduction = introduction;
}
private String getUserName() {
return userName ;
}
public void setUserName(String userName) {
this.userName = userName;
}
private String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
public String getTraceId() {
return traceId;
}
public void setTraceId(String traceId) {
this.traceId = traceId;
}
public String getTraceInfo() {
return traceInfo;
}
public int getFromMineType() {
return fromMineType;
}
public void setFromMineType(int fromMineType) {
this.fromMineType = fromMineType;
}
public void setTraceInfo(String traceInfo) {
this.traceInfo = traceInfo;
}
public String getFollowStatus() {
return followStatus;
}
public void setFollowStatus(String followStatus) {
this.followStatus = followStatus;
}
public String getShareNum() {
return shareNum;
}
public void setShareNum(String shareNum) {
this.shareNum = shareNum;
}
public String getShareUrl() {
return shareUrl;
}
public void setShareUrl(String shareUrl) {
this.shareUrl = shareUrl;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getDistrict() {
return district;
}
public void setDistrict(String district) {
this.district = district;
}
public String getRegion() {
return region;
}
public boolean isAuthentication() {
return !StringUtils.isBlank(getCategoryAuth())&&!StringUtils.isBlank(getAuthIcon());
}
public String getRegistTime() {
return registTime;
}
public void setRegistTime(String registTime) {
this.registTime = registTime;
}
private int getIsAttention() {
if(TextUtils.isEmpty(isAttention)){
return 1;
}
try {
return Integer.parseInt(cnIsAttention);
} catch (NumberFormatException e) {
}
return 1;
}
public void setIsAttention(String isAttention) {
this.isAttention = isAttention;
}
private String getMainControl() {
return mainControl;
}
public void setMainControl(String mainControl) {
this.mainControl = mainControl;
}
public String getSpeakControl() {
return speakControl;
}
public void setSpeakControl(String speakControl) {
this.speakControl = speakControl;
}
public String getCnCommentAllowed() {
return cnCommentAllowed;
}
public void setCnCommentAllowed(String cnCommentAllowed) {
this.cnCommentAllowed = cnCommentAllowed;
}
public String getPosterShareControl() {
return posterShareControl;
}
public void setPosterShareControl(String posterShareControl) {
this.posterShareControl = posterShareControl;
}
public String getLiveSwitch() {
return liveSwitch;
}
public void setLiveSwitch(String liveSwitch) {
this.liveSwitch = liveSwitch;
}
public String getVideoCreation() {
return videoCreation;
}
public void setVideoCreation(String videoCreation) {
this.videoCreation = videoCreation;
}
public String getVideoCollectionCreation() {
return videoCollectionCreation;
}
public void setVideoCollectionCreation(String videoCollectionCreation) {
this.videoCollectionCreation = videoCollectionCreation;
}
public String getArticleCreation() {
return articleCreation;
}
public void setArticleCreation(String articleCreation) {
this.articleCreation = articleCreation;
}
public String getPictureCollectionCreation() {
return pictureCollectionCreation;
}
public void setPictureCollectionCreation(String pictureCollectionCreation) {
this.pictureCollectionCreation = pictureCollectionCreation;
}
public String getDynamicCreation() {
return dynamicCreation;
}
public void setDynamicCreation(String dynamicCreation) {
this.dynamicCreation = dynamicCreation;
}
public String getLevelHeadIcon() {
return levelHeadIcon;
}
public void setLevelHeadIcon(String levelHeadIcon) {
this.levelHeadIcon = levelHeadIcon;
}
public String getCnContentPublish() {
return cnContentPublish;
}
public void setCnContentPublish(String cnContentPublish) {
this.cnContentPublish = cnContentPublish;
}
/** *********************************一下是字段修正方法*/
public String getRmhDesc() {
if(TextUtils.isEmpty(rmhDesc)){
return getIntroduction();
}
return rmhDesc;
}
public String getRmhHeadUrl() {
if (rmhHeadUrl == null){
return getHeadPhotoUrl();
}
return rmhHeadUrl;
}
public String getRmhId() {
if(TextUtils.isEmpty(rmhId)){
return getCreatorId();
}
return rmhId;
}
public String getRmhName() {
if(TextUtils.isEmpty(rmhName)){
return getUserName();
}
return rmhName;
}
public int getCnIsAttention() {
if(TextUtils.isEmpty(cnIsAttention)){
return getIsAttention();
}
return 1;
}
public String getCnMainControl() {
if(TextUtils.isEmpty(cnMainControl)){
return getMainControl();
}
return cnMainControl;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
}