This commit is contained in:
wangcongtao
2020-03-13 15:31:09 +08:00
3 changed files with 25 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ public class MarkerCarInfo implements Serializable {
private String carBrandLogoUrl;
private String carTypeName;
private int carType;
private CarLive carLive;
private CarLiveInfo carLiveInfo;
public String getCarBrandLogoUrl() {
if (TextUtils.isEmpty(carBrandLogoUrl)) {
@@ -44,15 +44,15 @@ public class MarkerCarInfo implements Serializable {
this.carType = carType;
}
public CarLive getCarLive() {
return carLive;
public CarLiveInfo getCarLiveInfo() {
return carLiveInfo;
}
public void setCarLive(CarLive carLive) {
this.carLive = carLive;
public void setCarLiveInfo(CarLiveInfo carLiveInfo) {
this.carLiveInfo = carLiveInfo;
}
class CarLive implements Serializable {
class CarLiveInfo implements Serializable {
//rtmp视频直播地址rtmp://
private String videoUrl;
//直播频道【直播心跳接口参数】C_1

View File

@@ -23,6 +23,7 @@ public class ExtensionsModuleConst {
public static final String TYPE_ENTRANCE = "entrance";
/*** 分享 开始 **/
//免唤醒语音命令
public static final String[] CMD_CANCLE_SHARE = {"取消分享"};
public static final String[] CMD_CLOSE_PAGE = {"关闭页面"};
@@ -31,12 +32,14 @@ public class ExtensionsModuleConst {
public static final String CANCLE_SHARE = "com.zhidao.launcher.cancle.share";
public static final String CLOSE_PAGE = "com.zhidao.launcher.close.page";
public static final String CLOSE = "com.zhidao.launcher.close";
/*** 分享 结束 **/
/*** 探路 开始 免唤醒 **/
public static final String[] CMD_UPLOAD_BLOCK = {"上报拥堵"};
public static final String[] CMD_TRAFFIC_CHECK = {"上报交通检查"};
public static final String[] CMD_ROAD_CLOSURE = {"上报封路"};
public static final String[] CMD_SHARE_OIL_PRICE = {"分享油价"};
//上报拥堵
public static final String UPLOAD_ROAD_BLOCK = "command_upload_block";
@@ -44,6 +47,9 @@ public class ExtensionsModuleConst {
public static final String UPLOAD_TRAFFIC_CHECK = "command_upload_traffic_check";
//上报封路
public static final String UPLOAD_ROAD_CLOSURE = "command_upload_road_closure";
//分享油价
public static final String SHARE_OIL_PRICE = "command_share_oil_price";
/*** 探路 结束 **/
//埋点
//分享分类 1路况2油价3交通检查4封路

View File

@@ -2,6 +2,7 @@ package com.mogo.module.extensions.entrance;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.alibaba.android.arouter.launcher.ARouter;
import com.mogo.commons.mvp.Presenter;
@@ -47,7 +48,8 @@ public class EntrancePresenter extends Presenter<EntranceView> {
ExtensionsModuleConst.CMD_TRAFFIC_CHECK, mogoVoiceListener);
AIAssist.getInstance(mContext).registerUnWakeupCommand(ExtensionsModuleConst.UPLOAD_ROAD_CLOSURE,
ExtensionsModuleConst.CMD_ROAD_CLOSURE, mogoVoiceListener);
AIAssist.getInstance(mContext).registerUnWakeupCommand(ExtensionsModuleConst.SHARE_OIL_PRICE,
ExtensionsModuleConst.CMD_SHARE_OIL_PRICE, mogoVoiceListener);
}
/**
@@ -65,6 +67,8 @@ public class EntrancePresenter extends Presenter<EntranceView> {
uploadTrfficCheck();
} else if (cmd.equals(ExtensionsModuleConst.UPLOAD_ROAD_CLOSURE)) { //上报封路
uploadRoadClosed();
} else if (cmd.equals(ExtensionsModuleConst.SHARE_OIL_PRICE)) { //分享油价
shareOilPrice();
}
}
@@ -85,7 +89,6 @@ public class EntrancePresenter extends Presenter<EntranceView> {
}
};
private void uploadRoadCondition() {
traceTanluData("2");
sendShareReceiver("1");
@@ -94,6 +97,13 @@ public class EntrancePresenter extends Presenter<EntranceView> {
ShareControl.getInstance(mContext).dismissDialog();
}
private void shareOilPrice() {
Intent intent = new Intent();
intent.setData(Uri.parse("freshthing://com.zhidao.fresh.things/shareOilPrice"));
mContext.startActivity(intent);
traceTypeData("2");
}
private void uploadTrfficCheck() {
sendShareReceiver("2");
Logger.d("EntrancePresenter", "mogoIntentListener 分享交通检查 ----> ");