blob: 9e7624b73c2d7d7f447bd2045b908ec9482ac85b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
package menion.android.locus.addon.publiclib.geoData;
import android.os.Parcel;
import android.os.Parcelable;
public class PointGeocachingDataLog implements Parcelable {
private static final int VERSION = 1;
public int id;
public int type;
public String date;
public String finder;
public int finderFound;
public String logText;
public PointGeocachingDataLog() {
id = 0;
type = PointGeocachingData.CACHE_LOG_TYPE_UNKNOWN;
date = "";
finder = "";
finderFound = 0;
logText = "";
}
/****************************/
/* PARCELABLE PART */
/****************************/
public static final Parcelable.Creator<PointGeocachingDataLog> CREATOR = new Parcelable.Creator<PointGeocachingDataLog>() {
public PointGeocachingDataLog createFromParcel(Parcel in) {
return new PointGeocachingDataLog(in);
}
public PointGeocachingDataLog[] newArray(int size) {
return new PointGeocachingDataLog[size];
}
};
public PointGeocachingDataLog(Parcel in) {
switch (in.readInt()) {
case 1:
id = in.readInt();
case 0:
type = in.readInt();
date = in.readString();
finder = in.readString();
finderFound = in.readInt();
logText = in.readString();
break;
}
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(VERSION);
dest.writeInt(id);
dest.writeInt(type);
dest.writeString(date);
dest.writeString(finder);
dest.writeInt(finderFound);
dest.writeString(logText);
}
@Override
public int describeContents() {
return 0;
}
}
|