
package com.haris.shopping.jsonutil.hotdatautil;

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

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class ListOfFeatured implements Parcelable
{

    @SerializedName("id")
    @Expose
    private String id;
    @SerializedName("name")
    @Expose
    private String name;
    @SerializedName("image")
    @Expose
    private String image;
    @SerializedName("type")
    @Expose
    private String type;

    @SerializedName("detail")
    @Expose
    private String detail;

    public ListOfFeatured() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDetail() {
        return detail;
    }

    public ListOfFeatured setDetail(String detail) {
        this.detail = detail;
        return this;
    }


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

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.image);
        dest.writeString(this.type);
        dest.writeString(this.detail);
    }

    protected ListOfFeatured(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.image = in.readString();
        this.type = in.readString();
        this.detail = in.readString();
    }

    public static final Creator<ListOfFeatured> CREATOR = new Creator<ListOfFeatured>() {
        @Override
        public ListOfFeatured createFromParcel(Parcel source) {
            return new ListOfFeatured(source);
        }

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