mirror of
https://github.com/nicobo/dataprovence.git
synced 2026-05-20 09:44:07 +02:00
+ Poi est parcelable pour etre passé entre Activity
This commit is contained in:
parent
8c9c29ede1
commit
30973459ac
BIN
bin/classes/bma/groomservice/data/Poi$1.class
Normal file
BIN
bin/classes/bma/groomservice/data/Poi$1.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
3
bin/jarlist.cache
Normal file
3
bin/jarlist.cache
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# cache for current jar dependecy. DO NOT EDIT.
|
||||
# format is <lastModified> <length> <SHA-1> <path>
|
||||
# Encoding is UTF-8
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
package bma.groomservice.data;
|
||||
|
||||
public class Poi {
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class Poi implements Parcelable {
|
||||
|
||||
/** Ex: "65c6fb5e-aa10-4711-8002-74d1ec31f9d6" */
|
||||
public String entityid;
|
||||
|
|
@ -35,6 +38,63 @@ public class Poi {
|
|||
/** Ex: "RD7" */
|
||||
public String voie;
|
||||
|
||||
public Poi() {
|
||||
super();
|
||||
}
|
||||
|
||||
public Poi(Parcel p) {
|
||||
this();
|
||||
entityid = p.readString();
|
||||
raisonsociale = p.readString();
|
||||
tlphone = p.readString();
|
||||
adresseWeb = p.readString();
|
||||
latitude = p.readDouble();
|
||||
longitude = p.readDouble();
|
||||
PartitionKey = p.readString();
|
||||
RowKey = p.readString();
|
||||
Timestamp = p.readString();
|
||||
bureaudistributeur = p.readString();
|
||||
codepostal = p.readString();
|
||||
type = p.readString();
|
||||
ville = p.readString();
|
||||
voie = p.readString();
|
||||
}
|
||||
|
||||
public static final Parcelable.Creator<Poi> CREATOR = new Parcelable.Creator<Poi>() {
|
||||
@Override
|
||||
public Poi createFromParcel(Parcel in) {
|
||||
return new Poi(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Poi[] newArray(int size) {
|
||||
return new Poi[size];
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel p, int flags) {
|
||||
p.writeString(entityid);
|
||||
p.writeString(raisonsociale);
|
||||
p.writeString(tlphone);
|
||||
p.writeString(adresseWeb);
|
||||
p.writeDouble(latitude);
|
||||
p.writeDouble(longitude);
|
||||
p.writeString(PartitionKey);
|
||||
p.writeString(RowKey);
|
||||
p.writeString(Timestamp);
|
||||
p.writeString(bureaudistributeur);
|
||||
p.writeString(codepostal);
|
||||
p.writeString(type);
|
||||
p.writeString(ville);
|
||||
p.writeString(voie);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Poi [entityid=" + entityid + ", raisonsociale=" + raisonsociale
|
||||
|
|
|
|||
Loading…
Reference in a new issue