dev
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
package com.mogo.map.model;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import com.mogo.map.MogoLatLng;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-24
|
||||
* <p>
|
||||
* 地图上的poi
|
||||
*/
|
||||
public class MogoPoi implements Parcelable {
|
||||
|
||||
private String name;
|
||||
private MogoLatLng coordinate;
|
||||
private String poiId;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName( String name ) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public MogoLatLng getCoordinate() {
|
||||
return coordinate;
|
||||
}
|
||||
|
||||
public void setCoordinate( MogoLatLng coordinate ) {
|
||||
this.coordinate = coordinate;
|
||||
}
|
||||
|
||||
public String getPoiId() {
|
||||
return poiId;
|
||||
}
|
||||
|
||||
public void setPoiId( String poiId ) {
|
||||
this.poiId = poiId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel( Parcel dest, int flags ) {
|
||||
dest.writeString( this.name );
|
||||
dest.writeParcelable( this.coordinate, flags );
|
||||
dest.writeString( this.poiId );
|
||||
}
|
||||
|
||||
public MogoPoi() {
|
||||
}
|
||||
|
||||
protected MogoPoi( Parcel in ) {
|
||||
this.name = in.readString();
|
||||
this.coordinate = in.readParcelable( MogoLatLng.class.getClassLoader() );
|
||||
this.poiId = in.readString();
|
||||
}
|
||||
|
||||
public static final Parcelable.Creator< MogoPoi > CREATOR = new Parcelable.Creator< MogoPoi >() {
|
||||
@Override
|
||||
public MogoPoi createFromParcel( Parcel source ) {
|
||||
return new MogoPoi( source );
|
||||
}
|
||||
|
||||
@Override
|
||||
public MogoPoi[] newArray( int size ) {
|
||||
return new MogoPoi[size];
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user