aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgImage.java
blob: 3dba437727f84ff57bbc1f8fa02b6bedb41ddb1b (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
package cgeo.geocaching;

import android.os.Parcel;
import android.os.Parcelable;

public class cgImage implements Parcelable {
    public String url = "";
    public String title = "";
    public String description = "";

    public cgImage() {
    }

    public cgImage(final Parcel in) {
        url = in.readString();
        title = in.readString();
        description = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(url);
        dest.writeString(title);
        dest.writeString(description);
    }

    public static final Parcelable.Creator<cgImage> CREATOR = new Parcelable.Creator<cgImage>() {
        public cgImage createFromParcel(Parcel in) {
            return new cgImage(in);
        }

        @Override
        public cgImage[] newArray(int size) {
            return new cgImage[size];
        }
    };
}