package fr.masciulli.drinks.model;

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

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class Drink implements Parcelable {
    public int id;
    public String name;
    public String imageUrl;
    public String history;
    public String instructions;
    public List<String> ingredients = new ArrayList<String>();
    public String wikipedia;

    public Drink() {
    }

    private Drink(Parcel parcel) {
        id = parcel.readInt();
        name = parcel.readString();
        imageUrl = parcel.readString();
        history = parcel.readString();
        instructions = parcel.readString();
        parcel.readStringList(ingredients);
        wikipedia = parcel.readString();
    }

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

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(id);
        parcel.writeString(name);
        parcel.writeString(imageUrl);
        parcel.writeString(history);
        parcel.writeString(instructions);
        parcel.writeStringList(ingredients);
        parcel.writeString(wikipedia);
    }

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

        public Drink[] newArray(int size) {
            return new Drink[size];
        }
    };
<<<<<<< HEAD
}
=======
}
>>>>>>> master

@@ -1483,44 +1483,6 @@
  %7D;%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A%7D%0A=======%0A%7D%0A%3E%3E%3E%3E%3E%3E%3E master
+%7D
 %0A

Resolve forgotten conflict