Skip to content

Instantly share code, notes, and snippets.

@pzagor2
Created March 7, 2013 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pzagor2/5108651 to your computer and use it in GitHub Desktop.
Save pzagor2/5108651 to your computer and use it in GitHub Desktop.
Wish code
public class Wish implements Parcelable {
public String name;
public Wish(){};
public Wish(String name)
{
this.name = name;
}
protected Wish(Parcel in) {
name = in.readString();
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(name);
}
public static final Parcelable.Creator<Wish> CREATOR = new Parcelable.Creator<Wish>() {
public Wish createFromParcel(Parcel in) {
return new Wish(in);
}
public Wish[] newArray(int size) {
return new Wish[size];
}
};
}
@pzagor2
Copy link
Author

pzagor2 commented Mar 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment