// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Entities/Collection.java
// public class Collection implements Parcelable {
// 	private int id;
// 	private String name;
// 	private String title;
// 	@SerializedName ("background_image_url")
// 	private String backgroundImageUrl;
// 	@SerializedName ("collection_url")
// 	private String collectionUrl;
// 	private List<Product> posts;
// 
// 	@Override
// 	public int describeContents () {
// 		return 0;
// 	}
// 
// 	@Override
// 	public void writeToParcel (Parcel out, int flags) {
// 		out.writeInt (id);
// 		out.writeString (name);
// 		out.writeString (title);
// 		out.writeString (backgroundImageUrl);
// 		out.writeString (collectionUrl);
// 		out.writeList (posts);
// 	}
// 
// 	public static final Creator<Collection> CREATOR = new Parcelable
// 			.Creator<Collection> () {
// 		public Collection createFromParcel (Parcel in) {
// 			return new Collection (in);
// 		}
// 
// 		public Collection[] newArray (int size) {
// 			return new Collection[size];
// 		}
// 	};
// 
// 	private Collection (Parcel in) {
// 		this.id = in.readInt ();
// 		this.name = in.readString ();
// 		this.title = in.readString ();
// 		this.backgroundImageUrl = in.readString ();
// 		this.collectionUrl = in.readString ();
// 		posts = new ArrayList<> ();
// 		in.readList (posts, getClass ().getClassLoader ());
// 	}
// 
// 	public int getId () {
// 		return id;
// 	}
// 
// 	public void setId (int id) {
// 		this.id = id;
// 	}
// 
// 	public String getName () {
// 		return name;
// 	}
// 
// 	public void setName (String name) {
// 		this.name = name;
// 	}
// 
// 	public String getTitle () {
// 		return title;
// 	}
// 
// 	public void setTitle (String title) {
// 		this.title = title;
// 	}
// 
// 	public String getBackgroundImageUrl () {
// 		return backgroundImageUrl;
// 	}
// 
// 	public void setBackgroundImageUrl (String backgroundImageUrl) {
// 		this.backgroundImageUrl = backgroundImageUrl;
// 	}
// 
// 	public String getCollectionUrl () {
// 		return collectionUrl;
// 	}
// 
// 	public void setCollectionUrl (String collectionUrl) {
// 		this.collectionUrl = collectionUrl;
// 	}
// 
// 	public List<Product> getPosts () {
// 		return posts;
// 	}
// 
// 	public void setPosts (List<Product> posts) {
// 		this.posts = posts;
// 	}
// 
// 	public static Creator<Collection> getCREATOR () {
// 		return CREATOR;
// 	}
// }


import com.jaspervanriet.huntingthatproduct.R2;
import com.jaspervanriet.huntingthatproduct.Utils.ViewUtils;
import com.squareup.picasso.Picasso;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import android.content.Context;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.DecelerateInterpolator;
import android.widget.ImageView;
import android.widget.TextView;
import com.jaspervanriet.huntingthatproduct.Entities.Collection;
import com.jaspervanriet.huntingthatproduct.Entities.Collections;
import com.jaspervanriet.huntingthatproduct.R;
			view.animate ()
					.translationY (0)
					.setInterpolator (new DecelerateInterpolator (3.f))
					.setDuration (ANIM_LIST_ENTER_DURATION)
					.start ();
		}
	}

	@Override
	public void onClick (View v) {
		mOnCollectionClickListener.onCollectionClick (v, (Integer) v.getTag ());
	}

	public void setOnCollectionClickListener (OnCollectionClickListener
			                                          onCollectionClickListener) {
		this.mOnCollectionClickListener = onCollectionClickListener;
	}

	static class CollectionsViewHolder extends RecyclerView.ViewHolder {

		@BindView (R2.id.card_collection)
		CardView card;
		@BindView (R2.id.card_collection_image)
		ImageView image;
		@BindView (R2.id.card_collection_name)
		TextView name;
		@BindView (R2.id.card_collection_title)
		TextView title;

		CollectionsViewHolder (View itemView) {
// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Entities/Collection.java
// public class Collection implements Parcelable {
// 	private int id;
// 	private String name;
// 	private String title;
// 	@SerializedName ("background_image_url")
// 	private String backgroundImageUrl;
// 	@SerializedName ("collection_url")
// 	private String collectionUrl;
// 	private List<Product> posts;
// 
// 	@Override
// 	public int describeContents () {
// 		return 0;
// 	}
// 
// 	@Override
// 	public void writeToParcel (Parcel out, int flags) {
// 		out.writeInt (id);
// 		out.writeString (name);
// 		out.writeString (title);
// 		out.writeString (backgroundImageUrl);
// 		out.writeString (collectionUrl);
// 		out.writeList (posts);
// 	}
// 
// 	public static final Creator<Collection> CREATOR = new Parcelable
// 			.Creator<Collection> () {
// 		public Collection createFromParcel (Parcel in) {
// 			return new Collection (in);
// 		}
// 
// 		public Collection[] newArray (int size) {
// 			return new Collection[size];
// 		}
// 	};
// 
// 	private Collection (Parcel in) {
// 		this.id = in.readInt ();
// 		this.name = in.readString ();
// 		this.title = in.readString ();
// 		this.backgroundImageUrl = in.readString ();
// 		this.collectionUrl = in.readString ();
// 		posts = new ArrayList<> ();
// 		in.readList (posts, getClass ().getClassLoader ());
// 	}
// 
// 	public int getId () {
// 		return id;
// 	}
// 
// 	public void setId (int id) {
// 		this.id = id;
// 	}
// 
// 	public String getName () {
// 		return name;
// 	}
// 
// 	public void setName (String name) {
// 		this.name = name;
// 	}
// 
// 	public String getTitle () {
// 		return title;
// 	}
// 
// 	public void setTitle (String title) {
// 		this.title = title;
// 	}
// 
// 	public String getBackgroundImageUrl () {
// 		return backgroundImageUrl;
// 	}
// 
// 	public void setBackgroundImageUrl (String backgroundImageUrl) {
// 		this.backgroundImageUrl = backgroundImageUrl;
// 	}
// 
// 	public String getCollectionUrl () {
// 		return collectionUrl;
// 	}
// 
// 	public void setCollectionUrl (String collectionUrl) {
// 		this.collectionUrl = collectionUrl;
// 	}
// 
// 	public List<Product> getPosts () {
// 		return posts;
// 	}
// 
// 	public void setPosts (List<Product> posts) {
// 		this.posts = posts;
// 	}
// 
// 	public static Creator<Collection> getCREATOR () {
// 		return CREATOR;
// 	}
// }


// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/Adapters/CollectionListAdapter.java
import com.jaspervanriet.huntingthatproduct.R2;
import com.jaspervanriet.huntingthatproduct.Utils.ViewUtils;
import com.squareup.picasso.Picasso;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import android.content.Context;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.DecelerateInterpolator;
import android.widget.ImageView;
import android.widget.TextView;
import com.jaspervanriet.huntingthatproduct.Entities.Collection;
import com.jaspervanriet.huntingthatproduct.Entities.Collections;
import com.jaspervanriet.huntingthatproduct.R;

			view.animate ()
					.translationY (0)
					.setInterpolator (new DecelerateInterpolator (3.f))
					.setDuration (ANIM_LIST_ENTER_DURATION)
					.start ();
		}
	}

	@Override
	public void onClick (View v) {
		mOnCollectionClickListener.onCollectionClick (v, (Integer) v.getTag ());
	}

	public void setOnCollectionClickListener (OnCollectionClickListener
			                                          onCollectionClickListener) {
		this.mOnCollectionClickListener = onCollectionClickListener;
	}

	static class CollectionsViewHolder extends RecyclerView.ViewHolder {

		@BindView (R2.id.card_collection)
		CardView card;
		@BindView (R2.id.card_collection_image)
		ImageView image;
		@BindView (R2.id.card_collection_name)
		TextView name;
		@BindView (R2.id.card_collection_title)
		TextView title;

		CollectionsViewHolder (View itemView) {
			super (itemView);