opt
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user