new#修改编译错误
This commit is contained in:
@@ -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<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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<Double>,//目的地坐标
|
|
||||||
var formatAddress: String//目的地地址
|
|
||||||
) {
|
|
||||||
var tts: String? = null //播报内容
|
|
||||||
get() {
|
|
||||||
field = "主人,我发现前往" + formatAddress + "沿途有拥堵,推荐你导航最优路线,现在开启导航吗?"
|
|
||||||
return field
|
|
||||||
}
|
|
||||||
private set
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user