增加了数据统计
http://wiki.zhidaohulian.com/pages/viewpage.action?pageId=42321443
This commit is contained in:
1
.idea/gradle.xml
generated
1
.idea/gradle.xml
generated
@@ -77,6 +77,7 @@
|
||||
</set>
|
||||
</option>
|
||||
<option name="resolveModulePerSourceSet" value="false" />
|
||||
<option name="useQualifiedModuleNames" value="true" />
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -4,7 +4,7 @@
|
||||
<asm skipDebug="false" skipFrames="false" skipCode="false" expandFrames="false" />
|
||||
<groovy codeStyle="LEGACY" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -62,6 +62,8 @@ public class V2XConst {
|
||||
public static final String V2X_ROAD_EVET = "v2x_road_event";
|
||||
public static final String V2X_ROAD_EVET_HISTORY_BUTTON = "V2X_button_click";
|
||||
public static final String V2X_ROAD_PRODUCE = "v2x_road_produce";
|
||||
public static final String V2X_ASK_ALERT = "v2x_ask_alert";//UGC 提问
|
||||
public static final String V2X_ASK_RESULT = "v2x_ask_result";//UGC 提问回答或消失
|
||||
public static final String LAUNCHER_ICON_CLICK = "Launcher_Icon_Click";
|
||||
/**
|
||||
* V2X 道路事件操作类型
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.mogo.module.common.entity.MarkerExploreWay;
|
||||
import com.mogo.module.common.entity.V2XEventShowEntity;
|
||||
import com.mogo.module.common.entity.V2XRoadEventEntity;
|
||||
import com.mogo.module.v2x.R;
|
||||
import com.mogo.module.v2x.V2XConst;
|
||||
import com.mogo.module.v2x.V2XServiceManager;
|
||||
import com.mogo.module.v2x.scenario.scene.ugc.V2XEventUgcScenario;
|
||||
import com.mogo.module.v2x.utils.EventTypeUtils;
|
||||
@@ -22,6 +23,9 @@ import com.mogo.module.v2x.voice.V2XVoiceConstants;
|
||||
import com.mogo.module.v2x.voice.V2XVoiceManager;
|
||||
import com.mogo.utils.network.utils.GsonUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import static com.mogo.module.v2x.V2XConst.MODULE_NAME;
|
||||
|
||||
/**
|
||||
@@ -129,6 +133,11 @@ public class V2XEventUgcVH extends V2XBaseViewHolder<V2XEventShowEntity> {
|
||||
}
|
||||
});
|
||||
ivEventTypeIcon.setImageResource((Integer) ugcTitleStr[2]);
|
||||
|
||||
// UGC 问答数据统计
|
||||
Map<String, Object> properties = new HashMap<>();
|
||||
properties.put("content", (String) ugcTitleStr[1]);
|
||||
V2XServiceManager.getMogoAnalytics().track(V2XConst.V2X_ASK_ALERT, properties);
|
||||
}
|
||||
|
||||
|
||||
@@ -137,6 +146,7 @@ public class V2XEventUgcVH extends V2XBaseViewHolder<V2XEventShowEntity> {
|
||||
public void onClick(View v) {
|
||||
isFeedbackClick = true;
|
||||
manualMarkingTrafficJam(1);
|
||||
dataStatistics(1);
|
||||
}
|
||||
});
|
||||
ivEventReportErr.setOnClickListener(new View.OnClickListener() {
|
||||
@@ -144,6 +154,7 @@ public class V2XEventUgcVH extends V2XBaseViewHolder<V2XEventShowEntity> {
|
||||
public void onClick(View v) {
|
||||
isFeedbackClick = true;
|
||||
manualMarkingTrafficJam(0);
|
||||
dataStatistics(2);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -153,6 +164,13 @@ public class V2XEventUgcVH extends V2XBaseViewHolder<V2XEventShowEntity> {
|
||||
}
|
||||
}
|
||||
|
||||
// UGC 提问回答或消失
|
||||
private void dataStatistics(int result) {
|
||||
Map<String, Object> properties = new HashMap<>();
|
||||
properties.put("result", result);
|
||||
V2XServiceManager.getMogoAnalytics().track(V2XConst.V2X_ASK_RESULT, properties);
|
||||
}
|
||||
|
||||
/**
|
||||
* 对道路事件进行反馈
|
||||
*/
|
||||
|
||||
@@ -70,7 +70,7 @@ public class V2XEventUgcWindow extends RelativeLayout
|
||||
}
|
||||
|
||||
public void initView(Context context) {
|
||||
Logger.w(MODULE_NAME, "V2X-初始化疲劳驾驶");
|
||||
Logger.w(MODULE_NAME, "V2X-初始化UGC的Window");
|
||||
LayoutInflater.from(context).inflate(R.layout.window_fault_help, this);
|
||||
// 详情列表
|
||||
mRecyclerView = findViewById(R.id.rvRoadEventList);
|
||||
|
||||
Reference in New Issue
Block a user