This commit is contained in:
wangcongtao
2020-01-15 22:48:50 +08:00
parent 6ddf294e7d
commit 24aeb160ba
7 changed files with 223 additions and 27 deletions

View File

@@ -54,6 +54,11 @@ public class MogoNaviInfo implements Parcelable {
*/
private int pathRetainDistance;
/**
* 当前限速
*/
private float currentLimitSpeed;
public String getCurrentRoadName() {
return currentRoadName;
}
@@ -118,6 +123,14 @@ public class MogoNaviInfo implements Parcelable {
this.pathRetainDistance = pathRetainDistance;
}
public float getCurrentLimitSpeed() {
return currentLimitSpeed;
}
public void setCurrentLimitSpeed( float currentLimitSpeed ) {
this.currentLimitSpeed = currentLimitSpeed;
}
@Override
public int describeContents() {
return 0;
@@ -133,6 +146,7 @@ public class MogoNaviInfo implements Parcelable {
dest.writeString( this.nextRoadName );
dest.writeInt( this.pathRetainTime );
dest.writeInt( this.pathRetainDistance );
dest.writeFloat( this.currentLimitSpeed );
}
public MogoNaviInfo() {
@@ -147,9 +161,10 @@ public class MogoNaviInfo implements Parcelable {
this.nextRoadName = in.readString();
this.pathRetainTime = in.readInt();
this.pathRetainDistance = in.readInt();
this.currentLimitSpeed = in.readFloat();
}
public static final Parcelable.Creator< MogoNaviInfo > CREATOR = new Parcelable.Creator< MogoNaviInfo >() {
public static final Creator< MogoNaviInfo > CREATOR = new Creator< MogoNaviInfo >() {
@Override
public MogoNaviInfo createFromParcel( Parcel source ) {
return new MogoNaviInfo( source );