// Path: app/src/main/java/com/hexforhn/hex/listener/ClickListener.java
// public interface ClickListener {
// 
//     /**
//      * Called when the view is clicked.
//      *
//      * @param v view that is clicked
//      * @param position of the clicked item
//      * @param isLongClick true if long click, false otherwise
//      */
//     void onClick(View v, int position, boolean isLongClick);
// }
// 
// Path: app/src/main/java/com/hexforhn/hex/viewmodel/StoryListItemViewModel.java
// public class StoryListItemViewModel {
// 
//     private final String mTitle;
//     private final String mDomain;
//     private final int mScore;
//     private final int mCommentCount;
//     private final Date mDate;
// 
//     public StoryListItemViewModel(String title, String domain, int score, int commentCount, Date date) {
//         this.mTitle = title;
//         this.mDomain = domain;
//         this.mScore = score;
//         this.mCommentCount = commentCount;
//         this.mDate = date;
//     }
// 
//     public String getTitle() {
//         return this.mTitle;
//     }
// 
//     public String getDomain() {
//         return this.mDomain;
//     }
// 
//     public String getScore() {
//         return String.valueOf(this.mScore);
//     }
// 
//     public String getCommentCount() {
//         return String.valueOf(this.mCommentCount);
//     }
// 
//     public String getRelativeTime() {
//         return DateUtils.getRelativeTimeSpanString(mDate.getTime(), System.currentTimeMillis(), 0)
//                 .toString();
// 
//     }
// }


import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.hexforhn.hex.R;
import com.hexforhn.hex.listener.ClickListener;
import com.hexforhn.hex.viewmodel.StoryListItemViewModel;
import com.squareup.picasso.Picasso;
import java.util.List;
package com.hexforhn.hex.adapter;




public class FrontPageListAdapter extends RecyclerView.Adapter<ViewHolder> {

    private final List<StoryListItemViewModel> mDataset;
// Path: app/src/main/java/com/hexforhn/hex/listener/ClickListener.java
// public interface ClickListener {
// 
//     /**
//      * Called when the view is clicked.
//      *
//      * @param v view that is clicked
//      * @param position of the clicked item
//      * @param isLongClick true if long click, false otherwise
//      */
//     void onClick(View v, int position, boolean isLongClick);
// }
// 
// Path: app/src/main/java/com/hexforhn/hex/viewmodel/StoryListItemViewModel.java
// public class StoryListItemViewModel {
// 
//     private final String mTitle;
//     private final String mDomain;
//     private final int mScore;
//     private final int mCommentCount;
//     private final Date mDate;
// 
//     public StoryListItemViewModel(String title, String domain, int score, int commentCount, Date date) {
//         this.mTitle = title;
//         this.mDomain = domain;
//         this.mScore = score;
//         this.mCommentCount = commentCount;
//         this.mDate = date;
//     }
// 
//     public String getTitle() {
//         return this.mTitle;
//     }
// 
//     public String getDomain() {
//         return this.mDomain;
//     }
// 
//     public String getScore() {
//         return String.valueOf(this.mScore);
//     }
// 
//     public String getCommentCount() {
//         return String.valueOf(this.mCommentCount);
//     }
// 
//     public String getRelativeTime() {
//         return DateUtils.getRelativeTimeSpanString(mDate.getTime(), System.currentTimeMillis(), 0)
//                 .toString();
// 
//     }
// }


// Path: app/src/main/java/com/hexforhn/hex/adapter/FrontPageListAdapter.java
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.hexforhn.hex.R;
import com.hexforhn.hex.listener.ClickListener;
import com.hexforhn.hex.viewmodel.StoryListItemViewModel;
import com.squareup.picasso.Picasso;
import java.util.List;

package com.hexforhn.hex.adapter;




public class FrontPageListAdapter extends RecyclerView.Adapter<ViewHolder> {

    private final List<StoryListItemViewModel> mDataset;
    private final ClickListener mClickListener;