diff --git a/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XRecommendRouteEntity.java b/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XRecommendRouteEntity.java new file mode 100644 index 0000000000..1ba43ddd4c --- /dev/null +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XRecommendRouteEntity.java @@ -0,0 +1,39 @@ +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 toPoint; //目的地坐标 + private String formatAddress; //目的地地址 + private String tts; //播报内容 + + public V2XRecommendRouteEntity(List toPoint, String formatAddress) { + this.toPoint = toPoint; + this.formatAddress = formatAddress; + } + + public List getToPoint() { + return toPoint; + } + + public void setToPoint(List toPoint) { + this.toPoint = toPoint; + } + + public String getFormatAddress() { + return formatAddress; + } + + public void setFormatAddress(String formatAddress) { + this.formatAddress = formatAddress; + } + + public String getTts() { + tts = "主人,我发现前往" + formatAddress + "沿途有拥堵,推荐你导航最优路线,现在开启导航吗?"; + return tts; + } +} diff --git a/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XRecommendRouteEntity.kt b/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XRecommendRouteEntity.kt deleted file mode 100644 index 10c8191fb7..0000000000 --- a/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XRecommendRouteEntity.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.mogo.module.common.entity - -/** - * created by wujifei on 2020/12/24 15:33 - * describe:基于目的地预判的道路事件 - */ -data class V2XRecommendRouteEntity( - var toPoint: List,//目的地坐标 - var formatAddress: String//目的地地址 -) { - var tts: String? = null //播报内容 - get() { - field = "主人,我发现前往" + formatAddress + "沿途有拥堵,推荐你导航最优路线,现在开启导航吗?" - return field - } - private set -} \ No newline at end of file