@@ -0,0 +1,1507 @@
+package com.example.profbola.bakingtime.models;%0A%0Aimport android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0A/**%0A * Created by prof.BOLA on 7/2/2017.%0A */%0A%0Apublic class Ingredient implements Parcelable %7B%0A%0A    private static final String QUANTITY_KEY = %22quantity%22;%0A    private static final String MEASURE_KEY = %22measure%22;%0A    private static final String INGREDIENT_KEY = %22ingredient%22;%0A%0A    public final int quantity;%0A    public final String ingredient;%0A    public final String measure;%0A%0A    public Ingredient(JSONObject object) throws JSONException %7B%0A        quantity = object.getInt(QUANTITY_KEY);%0A        ingredient = object.getString(INGREDIENT_KEY);%0A        measure = object.getString(MEASURE_KEY);%0A    %7D%0A%0A    protected Ingredient(Parcel in) %7B%0A        quantity = in.readInt();%0A        ingredient = in.readString();%0A        measure = in.readString();%0A    %7D%0A%0A    public static final Creator%3CIngredient%3E CREATOR = new Creator%3CIngredient%3E() %7B%0A        @Override%0A        public Ingredient createFromParcel(Parcel in) %7B%0A            return new Ingredient(in);%0A        %7D%0A%0A        @Override%0A        public Ingredient%5B%5D newArray(int size) %7B%0A            return new Ingredient%5Bsize%5D;%0A        %7D%0A    %7D;%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel dest, int flags) %7B%0A        dest.writeInt(quantity);%0A        dest.writeString(ingredient);%0A        dest.writeString(measure);%0A    %7D%0A%7D%0A

Add Ingredient model