dev
This commit is contained in:
@@ -3,6 +3,8 @@ package com.mogo.map.navi;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import androidx.annotation.DrawableRes;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-25
|
||||
@@ -32,9 +34,10 @@ public class MogoNaviInfo implements Parcelable {
|
||||
private int curStepRetainTime;
|
||||
|
||||
/**
|
||||
* 导航转向图标
|
||||
* 导航转向图标资源ID
|
||||
*/
|
||||
private int iconType;
|
||||
@DrawableRes
|
||||
private int iconResId;
|
||||
|
||||
/**
|
||||
* 下条路名
|
||||
@@ -83,12 +86,12 @@ public class MogoNaviInfo implements Parcelable {
|
||||
this.curStepRetainTime = curStepRetainTime;
|
||||
}
|
||||
|
||||
public int getIconType() {
|
||||
return iconType;
|
||||
public int getIconResId() {
|
||||
return iconResId;
|
||||
}
|
||||
|
||||
public void setIconType( int iconType ) {
|
||||
this.iconType = iconType;
|
||||
public void setIconResId( int iconResId ) {
|
||||
this.iconResId = iconResId;
|
||||
}
|
||||
|
||||
public String getNextRoadName() {
|
||||
@@ -126,7 +129,7 @@ public class MogoNaviInfo implements Parcelable {
|
||||
dest.writeInt( this.currentSpeed );
|
||||
dest.writeInt( this.curStepRetainDistance );
|
||||
dest.writeInt( this.curStepRetainTime );
|
||||
dest.writeInt( this.iconType );
|
||||
dest.writeInt( this.iconResId );
|
||||
dest.writeString( this.nextRoadName );
|
||||
dest.writeInt( this.pathRetainTime );
|
||||
dest.writeInt( this.pathRetainDistance );
|
||||
@@ -140,7 +143,7 @@ public class MogoNaviInfo implements Parcelable {
|
||||
this.currentSpeed = in.readInt();
|
||||
this.curStepRetainDistance = in.readInt();
|
||||
this.curStepRetainTime = in.readInt();
|
||||
this.iconType = in.readInt();
|
||||
this.iconResId = in.readInt();
|
||||
this.nextRoadName = in.readString();
|
||||
this.pathRetainTime = in.readInt();
|
||||
this.pathRetainDistance = in.readInt();
|
||||
|
||||
Reference in New Issue
Block a user