TraceBean.java
2.32 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
package com.wd.foundation.bean.analytics;
import com.wd.foundation.bean.base.BaseBean;
import com.wd.foundation.bean.custom.content.ContentTypeConstant;
/**
* 埋点-推荐数据bean
*
* @author baozhaoxin
* @version [V1.0.0, 2023/3/14]
* @since V1.0.0
*/
public class TraceBean extends BaseBean {
/**
* 来源频道
*/
public String channelSourceId;
/**
* 组件样式
*/
public String componentType;
/**
* 场景ID
*/
public String sceneId;
/**
* 子场景ID
*/
public String subSceneId;
/**
* 行为类型
*/
public String action;
/**
* 卡片物料id
*/
public String cardItemId;
/**
* 行为针对的物料ID
*/
public String itemId;
/**
* 物料的溯源Id
*/
public String traceId;
/**
* 当前交互触点(或页面)
*/
public String saPosition;
/**
* 分享渠道
*/
public String shareChannel;
/**
* 浏览时长
*/
public long duration;
/**
* 实验ID
*/
public String expIds;
/**
* contentType转ItemType
*/
public String toItemType(int type) {
String itemType = "";
if (ContentTypeConstant.URL_TYPE_ZERO == type) {
// 不跳转
} else if (ContentTypeConstant.URL_TYPE_ONE == type) {
// 点播
itemType = ItemTypeConstant.ITEM_TYPE_VIDEO;
} else if (ContentTypeConstant.URL_TYPE_TWO == type) {
// 直播
} else if (ContentTypeConstant.URL_TYPE_FIVE == type) {
// 5专题
} else if (ContentTypeConstant.URL_TYPE_SIX == type) {
// 6,跳转H5外链
itemType = ItemTypeConstant.ITEM_TYPE_ITEM;
} else if (ContentTypeConstant.URL_TYPE_EIGHT == type) {
// 8 图文
itemType = ItemTypeConstant.ITEM_TYPE_ARTICLE;
} else if (ContentTypeConstant.URL_TYPE_NINE == type) {
// 9 组图 图集
itemType = ItemTypeConstant.ITEM_TYPE_IMAGE;
} else if (ContentTypeConstant.URL_TYPE_TEN == type) {
// 10 H5新闻
itemType = ItemTypeConstant.ITEM_TYPE_ITEM;
} else if (ContentTypeConstant.URL_TYPE_ELEVEN == type) {
// 11 频道
}
return itemType;
}
}