// Path: Forecast/app/src/main/java/com/khasang/forecast/models/Changelog.java
// public class Changelog {
// 
//     private int versionResId;
//     private Date date;
//     private Image image;
//     private int changesResId;
// 
//     public int getVersionResId() {
//         return versionResId;
//     }
// 
//     public void setVersionResId(int versionResId) {
//         this.versionResId = versionResId;
//     }
// 
//     public Date getDate() {
//         return date;
//     }
// 
//     public void setDate(Date date) {
//         this.date = date;
//     }
// 
//     public Image getImage() {
//         return image;
//     }
// 
//     public void setImage(Image image) {
//         this.image = image;
//     }
// 
//     public int getChangesResId() {
//         return changesResId;
//     }
// 
//     public void setChangesResId(int changesResId) {
//         this.changesResId = changesResId;
//     }
// }


import android.content.Context;
import android.os.Build;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.khasang.forecast.R;
import com.khasang.forecast.models.Changelog;
import com.khasang.forecast.models.Image;
import com.squareup.picasso.Picasso;
import java.text.DateFormat;
import java.util.List;
package com.khasang.forecast.adapters;




public class ChangelogAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

    private Context context;
    private List<Changelog> changelogs;
    private ImageClickListener imageClickListener;

    public ChangelogAdapter(Context context, List<Changelog> changelogs) {
        this.context = context;
        this.changelogs = changelogs;
    }

    public void setImageClickListener(ImageClickListener imageClickListener) {
        this.imageClickListener = imageClickListener;
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        Context context = parent.getContext();
        View v = LayoutInflater.from(context).inflate(R.layout.item_changelog, parent, false);
        return new ViewHolder(v);
    }

    @Override
    public int getItemCount() {
        return changelogs.size();
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {
        final ViewHolder holder = (ViewHolder) viewHolder;
// Path: Forecast/app/src/main/java/com/khasang/forecast/models/Changelog.java
// public class Changelog {
// 
//     private int versionResId;
//     private Date date;
//     private Image image;
//     private int changesResId;
// 
//     public int getVersionResId() {
//         return versionResId;
//     }
// 
//     public void setVersionResId(int versionResId) {
//         this.versionResId = versionResId;
//     }
// 
//     public Date getDate() {
//         return date;
//     }
// 
//     public void setDate(Date date) {
//         this.date = date;
//     }
// 
//     public Image getImage() {
//         return image;
//     }
// 
//     public void setImage(Image image) {
//         this.image = image;
//     }
// 
//     public int getChangesResId() {
//         return changesResId;
//     }
// 
//     public void setChangesResId(int changesResId) {
//         this.changesResId = changesResId;
//     }
// }


// Path: Forecast/app/src/main/java/com/khasang/forecast/adapters/ChangelogAdapter.java
import android.content.Context;
import android.os.Build;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.khasang.forecast.R;
import com.khasang.forecast.models.Changelog;
import com.khasang.forecast.models.Image;
import com.squareup.picasso.Picasso;
import java.text.DateFormat;
import java.util.List;

package com.khasang.forecast.adapters;




public class ChangelogAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

    private Context context;
    private List<Changelog> changelogs;
    private ImageClickListener imageClickListener;

    public ChangelogAdapter(Context context, List<Changelog> changelogs) {
        this.context = context;
        this.changelogs = changelogs;
    }

    public void setImageClickListener(ImageClickListener imageClickListener) {
        this.imageClickListener = imageClickListener;
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        Context context = parent.getContext();
        View v = LayoutInflater.from(context).inflate(R.layout.item_changelog, parent, false);
        return new ViewHolder(v);
    }

    @Override
    public int getItemCount() {
        return changelogs.size();
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {
        final ViewHolder holder = (ViewHolder) viewHolder;
        Changelog changelog = changelogs.get(position);