From c16ad2bce4e9fff4fc2375c8f2aaa4246b9374e4 Mon Sep 17 00:00:00 2001 From: wujifei Date: Thu, 31 Dec 2020 18:55:58 +0800 Subject: [PATCH] =?UTF-8?q?new#=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/V2XRecommendRouteEntity.java | 39 +++++++++++++++++++ .../common/entity/V2XRecommendRouteEntity.kt | 17 -------- 2 files changed, 39 insertions(+), 17 deletions(-) create mode 100644 modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XRecommendRouteEntity.java delete mode 100644 modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XRecommendRouteEntity.kt 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