TransparentBean.java
11.1 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
package com.wd.foundation.bean.comment;
import com.wd.foundation.bean.base.BaseBean;
import com.wd.foundation.bean.custom.share.ShareBean;
import com.wd.foundation.wdkitcore.tools.StringUtils;
/**
* @Author LiuKun
* @date:2023/5/12
* @desc:透传到评论弹出框数据
*/
public class TransparentBean extends BaseBean {
public String summaryType;
public String summaryId;
/**
* pageName
*/
private String pageName;
/**
* pageId
*/
private String pageId;
/**
* 内容id
*/
private String contentId;
/**
* 内容标题
*/
private String contentTitle;
/**
* 内容类型
*/
private String contentType;
/**
* 是否外层含有NestScrollView,含有的话,需要设置recycleView禁止滚动监听
*/
private boolean isRecycleViewScroll = false;
/**
* 注:内容详情有值,必须传
* 被评论的内容关系id
*/
private String targetRelId;
/**
* 注:内容详情有值,必须传
* 被评论的内容关系类型,1.频道关系;2.专题关系
*/
private String targetRelType;
/**
* 创作者id
*/
private String creatorId;
/**
* 关系id 内容详情获取,内容详情没有就不传,服务端默认为0,
*/
private String contentRelId = "0";
/**
* 关系类型内容详情获取,内容详情没有就不传,服务端默认为0 ,1频道关系2专题关系
*/
private String relType = "0";
/**
* 分享类
*/
private ShareBean shareBean;
/**
* 【迭代二新增】是否是重点稿件 1是 0否
*/
private String keyArticle;
/**
* 是否领导人文章 0 否,1 是,不存在就传0
*/
private String leaderArticle = "0";
/**
* 【迭代二新增】关联的频道id/专题id;
*/
private String targetRelObjectId;
/**
* 评论ID
*/
private String commentId;
/**
* 是否显示返回图标、评论个数、评论输入框,收藏、点赞、分享
*/
public boolean isBackIcon = false;
public boolean isCommentNumIcon = false;
public boolean isCommentIcon = false;
public boolean isCollectIcon = false;
public boolean isLikeIcon = false;
public boolean isShareIcon = false;
/**
* 新增字段
* openLikes: 是否开启点赞 1是 0否
* openComment:是否开启评论 1是 0否
* likesStyle:点赞样式 1:红心(点赞) 2:大拇指(祈福) 3:蜡烛(默哀) 4:置空
* preCommentFlag:内容预评论显示开关;1显示 0隐藏
* commentDisplay:评论展示 1:显示 2 隐藏
* commentEntryFlag: 文章稿件,开启H5链接时的评论入口开关 评论入口开关 1:显示 2 隐藏
* posterFlag:海报开关0:关闭,1:开启;【如果存在关系,需要从关系上获取】
* menuShow:文章稿件使用 是否显示功能菜单 1显示 2隐藏
* openAudio:语音播报开关 0不播报 1播报
*/
private int openLikes=0;
private int openComment=0;
private int likesStyle=0;
private int preCommentFlag=0;
private int commentDisplay=0;
private int commentEntryFlag=0;
private int posterFlag=0;
private int menuShow=0;
private int openAudio=0;
private int openShare=0;
/**
* 号发布标识 枚举:0-CMS,1-号主发布;【仅对0-cms的处理】
*/
private int rmhPlatform;
/**
* 默认1
*/
private String isDetail = "1";
private String channelId;
/**
* 1开启、2关闭最佳评论,默认关闭
*/
private int bestNoticer = 2;
/**
* 游客评论开关:visitorComment 1:打开;0:关闭
*/
private int visitorComment = 0;
/**
* 稿件样式
*/
private String appStyle;
/**
* 是否开启评论
* */
public boolean isOpenComment() {
return openComment==1;
}
public String getPageName() {
return pageName;
}
public void setPageName(String pageName) {
this.pageName = pageName;
}
public String getPageId() {
return pageId;
}
public void setPageId(String pageId) {
this.pageId = pageId;
}
public String getContentId() {
if (null != shareBean && !StringUtils.isEmpty(shareBean.getContentId())) {
contentId = shareBean.getContentId();
}
return contentId;
}
public void setContentId(String contentId) {
this.contentId = contentId;
}
public String getContentTitle() {
return contentTitle;
}
public void setContentTitle(String contentTitle) {
this.contentTitle = contentTitle;
}
public String getContentType() {
if (null != shareBean && !StringUtils.isEmpty(shareBean.getContentType())) {
contentType = shareBean.getContentType();
}
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public boolean isRecycleViewScroll() {
return isRecycleViewScroll;
}
public void setRecycleViewScroll(boolean recycleViewScroll) {
isRecycleViewScroll = recycleViewScroll;
}
public String getTargetRelId() {
if (null != shareBean && !StringUtils.isEmpty(shareBean.getTargetRelId())) {
targetRelId = shareBean.getTargetRelId();
}
return targetRelId;
}
public void setTargetRelId(String targetRelId) {
this.targetRelId = targetRelId;
}
public String getTargetRelType() {
if (null != shareBean && !StringUtils.isEmpty(shareBean.getTargetRelType())) {
targetRelType = shareBean.getTargetRelType();
}
return targetRelType;
}
public void setTargetRelType(String targetRelType) {
this.targetRelType = targetRelType;
}
public String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
public String getContentRelId() {
if (StringUtils.isBlank(contentRelId)){
if (null != shareBean && !StringUtils.isEmpty(shareBean.getContentRelId())) {
contentRelId = shareBean.getContentRelId();
}
}
return contentRelId;
}
public void setContentRelId(String contentRelId) {
this.contentRelId = contentRelId;
}
public String getRelType() {
if (StringUtils.isBlank(relType)){
if (null != shareBean && !StringUtils.isEmpty(shareBean.getRelType())) {
relType = shareBean.getRelType();
}
}
return relType;
}
public void setRelType(String relType) {
this.relType = relType;
}
public ShareBean getShareBean() {
return shareBean;
}
public void setShareBean(ShareBean shareBean) {
this.shareBean = shareBean;
}
public boolean isBackIcon() {
return isBackIcon;
}
public void setBackIcon(boolean backIcon) {
isBackIcon = backIcon;
}
public boolean isCommentIcon() {
return isCommentIcon;
}
public void setCommentIcon(boolean commentIcon) {
isCommentIcon = commentIcon;
}
public boolean isCollectIcon() {
return isCollectIcon;
}
public void setCollectIcon(boolean collectIcon) {
isCollectIcon = collectIcon;
}
public boolean isLikeIcon() {
return isLikeIcon;
}
public void setLikeIcon(boolean likeIcon) {
isLikeIcon = likeIcon;
}
public boolean isShareIcon() {
return isShareIcon;
}
public void setShareIcon(boolean shareIcon) {
isShareIcon = shareIcon;
}
public int getLikesStyle() {
return likesStyle;
}
public void setLikesStyle(int likesStyle) {
this.likesStyle = likesStyle;
}
public int getPosterFlag() {
return posterFlag;
}
public void setPosterFlag(int posterFlag) {
this.posterFlag = posterFlag;
}
public int getOpenComment() {
return openComment;
}
public void setOpenComment(int openComment) {
this.openComment = openComment;
}
public int getOpenLikes() {
return openLikes;
}
public void setOpenLikes(int openLikes) {
this.openLikes = openLikes;
}
public int getOpenShare() {
return openShare;
}
public void setOpenShare(int openShare) {
this.openShare = openShare;
}
public int getPreCommentFlag() {
return preCommentFlag;
}
public boolean isShowComment(){
return getPreCommentFlag()==1;
}
public void setPreCommentFlag(int preCommentFlag) {
this.preCommentFlag = preCommentFlag;
}
public int getCommentDisplay() {
return commentDisplay;
}
public void setCommentDisplay(int commentDisplay) {
this.commentDisplay = commentDisplay;
}
public int getCommentEntryFlag() {
return commentEntryFlag;
}
public void setCommentEntryFlag(int commentEntryFlag) {
this.commentEntryFlag = commentEntryFlag;
}
public int getMenuShow() {
return menuShow;
}
public void setMenuShow(int menuShow) {
this.menuShow = menuShow;
}
public int getOpenAudio() {
return openAudio;
}
public void setOpenAudio(int openAudio) {
this.openAudio = openAudio;
}
public String getKeyArticle() {
return keyArticle;
}
public void setKeyArticle(String keyArticle) {
this.keyArticle = keyArticle;
}
public String getTargetRelObjectId() {
return targetRelObjectId;
}
public void setTargetRelObjectId(String targetRelObjectId) {
this.targetRelObjectId = targetRelObjectId;
}
public String getCommentId() {
return commentId;
}
public void setCommentId(String commentId) {
this.commentId = commentId;
}
public int getRmhPlatform() {
return rmhPlatform;
}
public void setRmhPlatform(int rmhPlatform) {
this.rmhPlatform = rmhPlatform;
}
public String getIsDetail() {
return isDetail;
}
public void setIsDetail(String isDetail) {
this.isDetail = isDetail;
}
public String getChannelId() {
return channelId;
}
public void setChannelId(String channelId) {
this.channelId = channelId;
}
public int getBestNoticer() {
return bestNoticer;
}
public void setBestNoticer(int bestNoticer) {
this.bestNoticer = bestNoticer;
}
public int getVisitorComment() {
return visitorComment;
}
public void setVisitorComment(int visitorComment) {
this.visitorComment = visitorComment;
}
public String getAppStyle() {
return appStyle;
}
public void setAppStyle(String appStyle) {
this.appStyle = appStyle;
}
public String getLeaderArticle() {
return leaderArticle;
}
public void setLeaderArticle(String leaderArticle) {
this.leaderArticle = leaderArticle;
}
}