@@ -1,42 +0,0 @@
|
||||
package com.mogo.module.common.drawer.marker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.LayoutInflater;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.mogo.map.marker.MogoMarkerOptions;
|
||||
import com.mogo.module.common.R;
|
||||
import com.mogo.module.common.entity.MarkerShowEntity;
|
||||
|
||||
/**
|
||||
* author : 李小鹏
|
||||
* desc : 地图2dMarker 在3d下的展示
|
||||
* 前方碰撞
|
||||
*/
|
||||
public class AheadCollisionView extends MapMarkerBaseView {
|
||||
public AheadCollisionView(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public AheadCollisionView(Context context, @Nullable AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public AheadCollisionView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initView(Context context) {
|
||||
LayoutInflater.from(context).inflate(R.layout.module_common_warning_marker_front, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateView(MarkerShowEntity markerShowEntity) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
package com.mogo.module.common.drawer.marker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
|
||||
import com.mogo.map.marker.IMogoInfoWindowAdapter;
|
||||
import com.mogo.map.marker.IMogoMarker;
|
||||
import com.mogo.map.marker.MogoMarkerOptions;
|
||||
|
||||
/**
|
||||
* @author lixiaopeng
|
||||
* @since 2021/4/15
|
||||
* 描述 前方碰撞预警marker
|
||||
*/
|
||||
public class AheadCollisionWindow3DAdapter implements IMogoInfoWindowAdapter {
|
||||
private Context mContext;
|
||||
|
||||
public AheadCollisionWindow3DAdapter(Context context) {
|
||||
this.mContext = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
public View getInfoWindow(IMogoMarker marker) {
|
||||
return new AheadCollisionView(mContext);
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
package com.mogo.module.common.entity;
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class RoadTrafficSegment {
|
||||
|
||||
//道路拥堵信息分级
|
||||
private int status;
|
||||
|
||||
//分段道路拥堵经纬度点
|
||||
private List<MogoLatLng> mogoLatLngList;
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public List<MogoLatLng> getMogoLatLngList() {
|
||||
return mogoLatLngList;
|
||||
}
|
||||
|
||||
public void setMogoLatLngList(List<MogoLatLng> mogoLatLngList) {
|
||||
this.mogoLatLngList = mogoLatLngList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RoadTrafficSegment{" +
|
||||
"status=" + status +
|
||||
", mogoLatLngList=" + mogoLatLngList +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -1,113 +0,0 @@
|
||||
package com.mogo.module.common.entity;
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 交通路况信息
|
||||
*/
|
||||
public class RoadTrafficStatus {
|
||||
|
||||
//角度
|
||||
private int angle;
|
||||
|
||||
//行车信息描述
|
||||
private String direction;
|
||||
|
||||
//道路名称
|
||||
private String roadName;
|
||||
|
||||
//道路拥堵信息分级
|
||||
private int status;
|
||||
|
||||
//道路拥堵长度
|
||||
private int length;
|
||||
|
||||
//整条道路拥堵经纬度点
|
||||
private List<MogoLatLng> mogoLatLngList;
|
||||
|
||||
//是否存在道路分段数据
|
||||
private boolean segment;
|
||||
|
||||
//分段道路数据
|
||||
private List<RoadTrafficSegment> roadTrafficSegmentList;
|
||||
|
||||
public int getAngle() {
|
||||
return angle;
|
||||
}
|
||||
|
||||
public void setAngle(int angle) {
|
||||
this.angle = angle;
|
||||
}
|
||||
|
||||
public String getDirection() {
|
||||
return direction;
|
||||
}
|
||||
|
||||
public void setDirection(String direction) {
|
||||
this.direction = direction;
|
||||
}
|
||||
|
||||
public String getRoadName() {
|
||||
return roadName;
|
||||
}
|
||||
|
||||
public void setRoadName(String roadName) {
|
||||
this.roadName = roadName;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public int getLength() {
|
||||
return length;
|
||||
}
|
||||
|
||||
public void setLength(int length) {
|
||||
this.length = length;
|
||||
}
|
||||
|
||||
public List<MogoLatLng> getMogoLatLngList() {
|
||||
return mogoLatLngList;
|
||||
}
|
||||
|
||||
public void setMogoLatLngList(List<MogoLatLng> mogoLatLngList) {
|
||||
this.mogoLatLngList = mogoLatLngList;
|
||||
}
|
||||
|
||||
public boolean isSegment() {
|
||||
return segment;
|
||||
}
|
||||
|
||||
public void setSegment(boolean segment) {
|
||||
this.segment = segment;
|
||||
}
|
||||
|
||||
public List<RoadTrafficSegment> getRoadTrafficSegmentList() {
|
||||
return roadTrafficSegmentList;
|
||||
}
|
||||
|
||||
public void setRoadTrafficSegmentList(List<RoadTrafficSegment> roadTrafficSegmentList) {
|
||||
this.roadTrafficSegmentList = roadTrafficSegmentList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RoadTrafficStatus{" +
|
||||
"angle=" + angle +
|
||||
", direction='" + direction + '\'' +
|
||||
", roadName='" + roadName + '\'' +
|
||||
", status=" + status +
|
||||
", length=" + length +
|
||||
", mogoLatLngList=" + mogoLatLngList +
|
||||
", segment=" + segment +
|
||||
", roadTrafficSegmentList=" + roadTrafficSegmentList +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
package com.mogo.module.common.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 上报路况服务Entity
|
||||
*/
|
||||
public class UploadTrafficEntity {
|
||||
|
||||
private List<RoadTrafficStatus> roadTrafficStatuses;
|
||||
|
||||
public List<RoadTrafficStatus> getRoadTrafficStatuses() {
|
||||
return roadTrafficStatuses;
|
||||
}
|
||||
|
||||
public void setRoadTrafficStatuses(List<RoadTrafficStatus> roadTrafficStatuses) {
|
||||
this.roadTrafficStatuses = roadTrafficStatuses;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "UploadTrafficEntity{" +
|
||||
"roadTrafficStatuses=" + roadTrafficStatuses +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -1,144 +0,0 @@
|
||||
package com.mogo.module.common.entity;
|
||||
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* author : donghongyu
|
||||
* e-mail : 1358506549@qq.com
|
||||
* date : 2020/3/11 4:25 PM
|
||||
* desc : V2X事件列表展示
|
||||
* version: 1.0
|
||||
*/
|
||||
public class V2XEventShowEntity implements Serializable {
|
||||
|
||||
// 0---默认展示详情,1--直播,
|
||||
@ViewType
|
||||
private int viewType;
|
||||
|
||||
// 道路事件详情
|
||||
private V2XRoadEventEntity v2XRoadEventEntity;
|
||||
// 直播车机 @see viewType = 1
|
||||
private V2XLiveCarInfoEntity v2XLiveCarInfoRes;
|
||||
// 直播车机列表
|
||||
private List<V2XLiveCarInfoEntity> v2XLiveCarList;
|
||||
// 推送信息,疲劳驾驶,他人发起故障求助
|
||||
private V2XPushMessageEntity v2XPushMessageEntity;
|
||||
// 违章停车
|
||||
private MarkerExploreWay v2XIllegalPark;
|
||||
|
||||
// 基于目的地道路推荐详情
|
||||
private V2XRecommendRouteEntity v2XRecommendRouteEntity;
|
||||
|
||||
public int getViewType() {
|
||||
return viewType;
|
||||
}
|
||||
|
||||
public void setViewType(int viewType) {
|
||||
this.viewType = viewType;
|
||||
}
|
||||
|
||||
public V2XRoadEventEntity getV2XRoadEventEntity() {
|
||||
return v2XRoadEventEntity;
|
||||
}
|
||||
|
||||
public void setV2XRoadEventEntity(V2XRoadEventEntity v2XRoadEventEntity) {
|
||||
this.v2XRoadEventEntity = v2XRoadEventEntity;
|
||||
}
|
||||
|
||||
public V2XLiveCarInfoEntity getV2XLiveCarInfoRes() {
|
||||
return v2XLiveCarInfoRes;
|
||||
}
|
||||
|
||||
public void setV2XLiveCarInfoRes(V2XLiveCarInfoEntity v2XLiveCarInfoRes) {
|
||||
this.v2XLiveCarInfoRes = v2XLiveCarInfoRes;
|
||||
}
|
||||
|
||||
public List<V2XLiveCarInfoEntity> getV2XLiveCarList() {
|
||||
return v2XLiveCarList;
|
||||
}
|
||||
|
||||
public void setV2XLiveCarList(List<V2XLiveCarInfoEntity> v2XLiveCarList) {
|
||||
this.v2XLiveCarList = v2XLiveCarList;
|
||||
}
|
||||
|
||||
public V2XPushMessageEntity getV2XPushMessageEntity() {
|
||||
return v2XPushMessageEntity;
|
||||
}
|
||||
|
||||
public void setV2XPushMessageEntity(V2XPushMessageEntity v2XPushMessageEntity) {
|
||||
this.v2XPushMessageEntity = v2XPushMessageEntity;
|
||||
}
|
||||
|
||||
public MarkerExploreWay getV2XIllegalPark() {
|
||||
return v2XIllegalPark;
|
||||
}
|
||||
|
||||
public void setV2XIllegalPark(MarkerExploreWay v2XIllegalPark) {
|
||||
this.v2XIllegalPark = v2XIllegalPark;
|
||||
}
|
||||
|
||||
public V2XRecommendRouteEntity getV2XRecommendRouteEntity() {
|
||||
return v2XRecommendRouteEntity;
|
||||
}
|
||||
|
||||
public void setV2XRecommendRouteEntity(V2XRecommendRouteEntity v2XRecommendRouteEntity) {
|
||||
this.v2XRecommendRouteEntity = v2XRecommendRouteEntity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
V2XEventShowEntity that = (V2XEventShowEntity) o;
|
||||
return viewType == that.viewType &&
|
||||
Objects.equals(v2XRoadEventEntity, that.v2XRoadEventEntity) &&
|
||||
Objects.equals(v2XLiveCarInfoRes, that.v2XLiveCarInfoRes) &&
|
||||
Objects.equals(v2XLiveCarList, that.v2XLiveCarList) &&
|
||||
Objects.equals(v2XPushMessageEntity, that.v2XPushMessageEntity) &&
|
||||
Objects.equals(v2XIllegalPark, that.v2XIllegalPark) &&
|
||||
Objects.equals(v2XRecommendRouteEntity, that.v2XRecommendRouteEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(viewType, v2XRoadEventEntity,
|
||||
v2XLiveCarInfoRes, v2XLiveCarList,
|
||||
v2XPushMessageEntity, v2XIllegalPark, v2XRecommendRouteEntity);
|
||||
}
|
||||
|
||||
|
||||
@IntDef(value = {
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_ROAD_WARNING,
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_SEEK_WARNING,
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_FATIGUE_DRIVING,
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_PUSH_WINDOW_WARNING,
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_PUSH_TOAST_WARNING,
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_PUSH_LIVE_CAR_WARNING,
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_ANIMATION_WARNING,
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_ROAD_LIVE_CAR_WARNING,
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_ILLEGAL_PARK_WARNING,
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_CAR_FOR_HELP,
|
||||
V2XMessageEntity.V2XTypeEnum.ALERT_RECOMMEND_ROUTE,
|
||||
})
|
||||
@Target({
|
||||
ElementType.PARAMETER,
|
||||
ElementType.FIELD,
|
||||
ElementType.METHOD,
|
||||
}) //表示注解作用范围,参数注解,成员注解,方法注解
|
||||
@Retention(RetentionPolicy.SOURCE) //表示注解所存活的时间,在运行时,而不会存在 .class 文件中
|
||||
public @interface ViewType { //接口,定义新的注解类型
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
package com.mogo.module.common.entity;
|
||||
|
||||
/**
|
||||
* obu事件封装
|
||||
*
|
||||
* @author tongchenfei
|
||||
*/
|
||||
public class V2XObuEventEntity {
|
||||
private int type;
|
||||
private String desc;
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "V2XObuEventEntity{" +
|
||||
"type=" + type +
|
||||
", desc='" + desc + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -1,301 +0,0 @@
|
||||
package com.mogo.module.common.entity;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* author : donghongyu
|
||||
* e-mail : 1358506549@qq.com
|
||||
* date : 2020-02-0315:49
|
||||
* desc : V2X警报数据
|
||||
* version: 1.0
|
||||
*/
|
||||
public class V2XPushMessageEntity implements Serializable {
|
||||
// 0---默认展示详情,1--直播,2--停车场,3--加油站,4--道路事件详情
|
||||
private int viewType;
|
||||
private String sceneId;
|
||||
private String sceneName;
|
||||
private short sceneCategory;
|
||||
private short sceneLevel;
|
||||
private String sceneDescription;
|
||||
private boolean zoom;
|
||||
private int zoomScale;
|
||||
private String alarmContent;
|
||||
private String tts;
|
||||
private String videoUrl;
|
||||
private String videoSn;
|
||||
private String videoChannel;
|
||||
private int expireTime;
|
||||
private long createTime;
|
||||
|
||||
private String sn;
|
||||
private String headImgUrl;
|
||||
private String msgImgUrl;
|
||||
private String address;
|
||||
private double distance;
|
||||
private boolean isShowWindow;
|
||||
|
||||
private int age;
|
||||
private String displayName;
|
||||
private int sex;
|
||||
private long userId;
|
||||
|
||||
private double lat;
|
||||
private double lon;
|
||||
|
||||
private List<double[]> recommendPolyline;
|
||||
|
||||
public int getViewType() {
|
||||
return viewType;
|
||||
}
|
||||
|
||||
public void setViewType(int viewType) {
|
||||
this.viewType = viewType;
|
||||
}
|
||||
|
||||
public String getSceneId() {
|
||||
return sceneId;
|
||||
}
|
||||
|
||||
public void setSceneId(String sceneId) {
|
||||
this.sceneId = sceneId;
|
||||
}
|
||||
|
||||
public String getSceneName() {
|
||||
return sceneName;
|
||||
}
|
||||
|
||||
public void setSceneName(String sceneName) {
|
||||
this.sceneName = sceneName;
|
||||
}
|
||||
|
||||
public short getSceneCategory() {
|
||||
return sceneCategory;
|
||||
}
|
||||
|
||||
public void setSceneCategory(short sceneCategory) {
|
||||
this.sceneCategory = sceneCategory;
|
||||
}
|
||||
|
||||
public short getSceneLevel() {
|
||||
return sceneLevel;
|
||||
}
|
||||
|
||||
public void setSceneLevel(short sceneLevel) {
|
||||
this.sceneLevel = sceneLevel;
|
||||
}
|
||||
|
||||
public String getSceneDescription() {
|
||||
return sceneDescription;
|
||||
}
|
||||
|
||||
public void setSceneDescription(String sceneDescription) {
|
||||
this.sceneDescription = sceneDescription;
|
||||
}
|
||||
|
||||
public boolean isZoom() {
|
||||
return zoom;
|
||||
}
|
||||
|
||||
public void setZoom(boolean zoom) {
|
||||
this.zoom = zoom;
|
||||
}
|
||||
|
||||
public String getAlarmContent() {
|
||||
if (TextUtils.isEmpty(alarmContent)) {
|
||||
return "";
|
||||
}
|
||||
return alarmContent;
|
||||
}
|
||||
|
||||
public void setAlarmContent(String alarmContent) {
|
||||
this.alarmContent = alarmContent;
|
||||
}
|
||||
|
||||
public String getTts() {
|
||||
if (TextUtils.isEmpty(tts)) {
|
||||
return "";
|
||||
}
|
||||
return tts;
|
||||
}
|
||||
|
||||
public void setTts(String tts) {
|
||||
this.tts = tts;
|
||||
}
|
||||
|
||||
public String getVideoUrl() {
|
||||
return videoUrl;
|
||||
}
|
||||
|
||||
public void setVideoUrl(String videoUrl) {
|
||||
this.videoUrl = videoUrl;
|
||||
}
|
||||
|
||||
public String getVideoSn() {
|
||||
return videoSn;
|
||||
}
|
||||
|
||||
public void setVideoSn(String videoSn) {
|
||||
this.videoSn = videoSn;
|
||||
}
|
||||
|
||||
public String getVideoChannel() {
|
||||
return videoChannel;
|
||||
}
|
||||
|
||||
public void setVideoChannel(String videoChannel) {
|
||||
this.videoChannel = videoChannel;
|
||||
}
|
||||
|
||||
public int getExpireTime() {
|
||||
return expireTime;
|
||||
}
|
||||
|
||||
public void setExpireTime(int expireTime) {
|
||||
this.expireTime = expireTime;
|
||||
}
|
||||
|
||||
public int getZoomScale() {
|
||||
return zoomScale;
|
||||
}
|
||||
|
||||
public void setZoomScale(int zoomScale) {
|
||||
this.zoomScale = zoomScale;
|
||||
}
|
||||
|
||||
|
||||
public double getLat() {
|
||||
return lat;
|
||||
}
|
||||
|
||||
public void setLat(double lat) {
|
||||
this.lat = lat;
|
||||
}
|
||||
|
||||
public double getLon() {
|
||||
return lon;
|
||||
}
|
||||
|
||||
public void setLon(double lon) {
|
||||
this.lon = lon;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getHeadImgUrl() {
|
||||
return headImgUrl;
|
||||
}
|
||||
|
||||
public void setHeadImgUrl(String headImgUrl) {
|
||||
this.headImgUrl = headImgUrl;
|
||||
}
|
||||
|
||||
public String getMsgImgUrl() {
|
||||
return msgImgUrl;
|
||||
}
|
||||
|
||||
public void setMsgImgUrl(String msgImgUrl) {
|
||||
this.msgImgUrl = msgImgUrl;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public double getDistance() {
|
||||
return distance;
|
||||
}
|
||||
|
||||
public void setDistance(double distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public boolean isShowWindow() {
|
||||
return isShowWindow;
|
||||
}
|
||||
|
||||
public void setShowWindow(boolean showWindow) {
|
||||
isShowWindow = showWindow;
|
||||
}
|
||||
|
||||
public long getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public int getAge() {
|
||||
return age;
|
||||
}
|
||||
|
||||
public void setAge(int age) {
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return displayName;
|
||||
}
|
||||
|
||||
public void setDisplayName(String displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
public int getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(int sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public List<double[]> getRecommendPolyline() {
|
||||
return recommendPolyline;
|
||||
}
|
||||
|
||||
public void setRecommendPolyline(List<double[]> recommendPolyline) {
|
||||
this.recommendPolyline = recommendPolyline;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
V2XPushMessageEntity that = (V2XPushMessageEntity) o;
|
||||
return Objects.equals(sceneId, that.sceneId) &&
|
||||
Objects.equals(tts, that.tts);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(sceneId, tts);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
package com.mogo.module.common.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* created by wujifei on 2020/12/31 18:45
|
||||
* describe:基于目的地预判的道路事件
|
||||
*/
|
||||
public class V2XRecommendRouteEntity {
|
||||
private List<Double> toPoint; //目的地坐标
|
||||
private String formatAddress; //目的地地址
|
||||
private String tts; //播报内容
|
||||
|
||||
public V2XRecommendRouteEntity(List<Double> toPoint, String formatAddress) {
|
||||
this.toPoint = toPoint;
|
||||
this.formatAddress = formatAddress;
|
||||
}
|
||||
|
||||
public List<Double> getToPoint() {
|
||||
return toPoint;
|
||||
}
|
||||
|
||||
public void setToPoint(List<Double> toPoint) {
|
||||
this.toPoint = toPoint;
|
||||
}
|
||||
|
||||
public String getFormatAddress() {
|
||||
return formatAddress;
|
||||
}
|
||||
|
||||
public void setFormatAddress(String formatAddress) {
|
||||
this.formatAddress = formatAddress;
|
||||
}
|
||||
|
||||
public String getTts() {
|
||||
tts = "主人,我发现前往" + formatAddress + "沿途有拥堵,推荐你导航最优路线,现在开启导航吗?";
|
||||
return tts;
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,6 @@ package com.mogo.module.common.enums
|
||||
|
||||
import com.mogo.module.common.R
|
||||
import com.mogo.module.common.utils.CloudPoiManager
|
||||
import com.mogo.module.common.utils.Const.*
|
||||
import com.zhidao.support.obu.constants.ObuConstants
|
||||
|
||||
/**
|
||||
@@ -528,46 +527,6 @@ enum class EventTypeEnum(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 UGC 问答使用的 Title 和 TTS 以及展示图表
|
||||
*/
|
||||
@JvmStatic
|
||||
fun getUgcTitleStr(poiType: String?): Array<Any?>? {
|
||||
val str = arrayOfNulls<Any>(5)
|
||||
when (poiType) {
|
||||
ROAD_CLOSED.poiType -> {
|
||||
str[0] = "你刚经过 #### \n封路吗?"
|
||||
str[1] = "你刚路过的路段封路吗?您可以直接对我说封路、或者不封路。"
|
||||
str[2] = R.drawable.v_to_x_event_ugc_fenglu
|
||||
str[3] = COMMAND_ZHIDAO_V2X_FEEDBACK_FENG_LU_YES_UN_WAKEUP
|
||||
str[4] = COMMAND_ZHIDAO_V2X_FEEDBACK_FENG_LU_NO_UN_WAKEUP
|
||||
}
|
||||
FOURS_ROAD_WORK.poiType -> {
|
||||
str[0] = "你刚经过 #### \n有道路施工吗?"
|
||||
str[1] = "你刚路过的路段道路施工吗?您可以直接对我说有施工、或者没有施工。"
|
||||
str[2] = R.drawable.bg_v2x_cancel_help
|
||||
str[3] = COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GONG_YES_UN_WAKEUP
|
||||
str[4] = COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GONG_NO_UN_WAKEUP
|
||||
}
|
||||
FOURS_BLOCK_UP.poiType -> {
|
||||
str[0] = "你刚路过 #### \n堵不堵?"
|
||||
str[1] = "你刚路过的路段堵不堵?您可以直接对我说拥赌、或者不堵。"
|
||||
str[2] = R.drawable.v_to_x_event_ugc_yongdu
|
||||
str[3] = COMMAND_ZHIDAO_V2X_FEEDBACK_YONG_DU_YES_UN_WAKEUP
|
||||
str[4] = COMMAND_ZHIDAO_V2X_FEEDBACK_YONG_DU_NO_UN_WAKEUP
|
||||
}
|
||||
FOURS_ACCIDENT.poiType, FOURS_ACCIDENT_01.poiType, FOURS_ACCIDENT_02.poiType,
|
||||
FOURS_ACCIDENT_03.poiType, FOURS_ACCIDENT_04.poiType, FOURS_ACCIDENT_05.poiType -> {
|
||||
str[0] = "你刚经过 #### \n有事故发生吗?"
|
||||
str[1] = "你刚路过的路段有交通事故吗?您可以直接对我说有事故、或者没有事故。"
|
||||
str[2] = R.drawable.v_to_x_event_ugc_shigu
|
||||
str[3] = COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GU_YES_UN_WAKEUP
|
||||
str[4] = COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GU_NO_UN_WAKEUP
|
||||
}
|
||||
else -> return null
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun getTts(poiType: String?): String {
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
package com.mogo.module.common.utils;
|
||||
|
||||
public class Const {
|
||||
/**
|
||||
* V2X 场景广播 Action
|
||||
*/
|
||||
public static final String BROADCAST_SCENE_HANDLER_ACTION = "com.v2x.scene_handler_broadcast";
|
||||
public static final String BROADCAST_SCENE_EXTRA_KEY = "V2XMessageEntity";
|
||||
|
||||
/**
|
||||
* 用户UGC反馈免唤醒词语
|
||||
*/
|
||||
// 拥堵
|
||||
public static final String COMMAND_ZHIDAO_V2X_FEEDBACK_YONG_DU_YES_UN_WAKEUP = "COMMAND_ZHIDAO_V2X_FEEDBACK_YONG_DU_YES_UN_WAKEUP";
|
||||
public static final String[] COMMAND_ZHIDAO_V2X_FEEDBACK_YONG_DU_YES_UN_WAKEUP_WORDS = {"拥堵", "很堵", "堵死了", "有点堵", "确定"};
|
||||
|
||||
public static final String COMMAND_ZHIDAO_V2X_FEEDBACK_YONG_DU_NO_UN_WAKEUP = "COMMAND_ZHIDAO_V2X_FEEDBACK_YONG_DU_NO_UN_WAKEUP";
|
||||
public static final String[] COMMAND_ZHIDAO_V2X_FEEDBACK_YONG_DU_NO_UN_WAKEUP_WORDS = {"没注意", "不堵", "很畅通", "取消", "关闭"};
|
||||
|
||||
|
||||
// 封路
|
||||
public static final String COMMAND_ZHIDAO_V2X_FEEDBACK_FENG_LU_YES_UN_WAKEUP = "COMMAND_ZHIDAO_V2X_FEEDBACK_FENG_LU_YES_UN_WAKEUP";
|
||||
public static final String[] COMMAND_ZHIDAO_V2X_FEEDBACK_FENG_LU_YES_UN_WAKEUP_WORDS = {"封路了", "封了", "封路", "有封路", "确定"};
|
||||
|
||||
public static final String COMMAND_ZHIDAO_V2X_FEEDBACK_FENG_LU_NO_UN_WAKEUP = "COMMAND_ZHIDAO_V2X_FEEDBACK_FENG_LU_NO_UN_WAKEUP";
|
||||
public static final String[] COMMAND_ZHIDAO_V2X_FEEDBACK_FENG_LU_NO_UN_WAKEUP_WORDS = {"不封路", "没注意", "没看到", "没有", "没封路", "无封路", "取消", "关闭"};
|
||||
|
||||
|
||||
// 事故
|
||||
public static final String COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GU_YES_UN_WAKEUP = "COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GU_YES_UN_WAKEUP";
|
||||
public static final String[] COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GU_YES_UN_WAKEUP_WORDS = {"有事故", "存在交通事故", "确定"};
|
||||
|
||||
public static final String COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GU_NO_UN_WAKEUP = "COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GU_NO_UN_WAKEUP";
|
||||
public static final String[] COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GU_NO_UN_WAKEUP_WORDS = {"没注意", "没有事故", "无事故", "没看到", "没有", "取消", "关闭"};
|
||||
|
||||
|
||||
// 道路施工
|
||||
public static final String COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GONG_YES_UN_WAKEUP = "COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GONG_YES_UN_WAKEUP";
|
||||
public static final String[] COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GONG_YES_UN_WAKEUP_WORDS = {"有", "在施工", "有施工", "确定"};
|
||||
|
||||
public static final String COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GONG_NO_UN_WAKEUP = "COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GONG_NO_UN_WAKEUP";
|
||||
public static final String[] COMMAND_ZHIDAO_V2X_FEEDBACK_SHI_GONG_NO_UN_WAKEUP_WORDS = {"没注意", "没看到", "没有施工", "无施工", "很正常", "取消", "关闭"};
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
package com.mogo.module.common.view;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.LayoutInflater;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.mogo.module.common.R;
|
||||
import com.mogo.module.common.drawer.marker.MapMarkerBaseView;
|
||||
import com.mogo.module.common.entity.MarkerShowEntity;
|
||||
|
||||
/**
|
||||
* @author liujing
|
||||
* @description 描述
|
||||
* @since: 2021/4/13
|
||||
*/
|
||||
public class MarkerBaseFloor extends MapMarkerBaseView {
|
||||
public MarkerBaseFloor(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public MarkerBaseFloor(Context context, @Nullable AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public MarkerBaseFloor(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initView(Context context) {
|
||||
LayoutInflater.from( context ).inflate(R.layout.module_common_warning_marker_bottom, this );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateView(MarkerShowEntity markerShowEntity) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user