// Path: app/src/main/java/com/hitanshudhawan/popcorn/network/videos/Video.java
// public class Video {
// 
//     @SerializedName("id")
//     private String id;
//     //iso_639_1 missing
//     //iso_3166_1 missing
//     @SerializedName("key")
//     private String key;
//     @SerializedName("name")
//     private String name;
//     @SerializedName("site")
//     private String site;
//     @SerializedName("size")
//     private Integer size;
//     @SerializedName("type")
//     private String type;
// 
//     public Video(String id, String key, String name, String site, Integer size, String type) {
//         this.id = id;
//         this.key = key;
//         this.name = name;
//         this.site = site;
//         this.size = size;
//         this.type = type;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String getKey() {
//         return key;
//     }
// 
//     public void setKey(String key) {
//         this.key = key;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public String getSite() {
//         return site;
//     }
// 
//     public void setSite(String site) {
//         this.site = site;
//     }
// 
//     public Integer getSize() {
//         return size;
//     }
// 
//     public void setSize(Integer size) {
//         this.size = size;
//     }
// 
//     public String getType() {
//         return type;
//     }
// 
//     public void setType(String type) {
//         this.type = type;
//     }
// }
// 
// Path: app/src/main/java/com/hitanshudhawan/popcorn/utils/Constants.java
// public class Constants {
// 
//     public static final String FIRST_TIME_LAUNCH = "first_time_launch";
//     public static final String MOVIE_ID = "movie_id";
//     public static final String TV_SHOW_ID = "tv_show_id";
//     public static final String VIEW_ALL_MOVIES_TYPE = "type_view_all_movies";
//     public static final int NOW_SHOWING_MOVIES_TYPE = 1;
//     public static final int POPULAR_MOVIES_TYPE = 2;
//     public static final int UPCOMING_MOVIES_TYPE = 3;
//     public static final int TOP_RATED_MOVIES_TYPE = 4;
//     public static final String VIEW_ALL_TV_SHOWS_TYPE = "type_view_all_tv_shows";
//     public static final int AIRING_TODAY_TV_SHOWS_TYPE = 1;
//     public static final int ON_THE_AIR_TV_SHOWS_TYPE = 2;
//     public static final int POPULAR_TV_SHOWS_TYPE = 3;
//     public static final int TOP_RATED_TV_SHOWS_TYPE = 4;
//     public static final String PERSON_ID = "person_id";
//     public static final String QUERY = "query";
//     public static final String RATING_SYMBOL = "\u2605";
//     public static final String IMAGE_LOADING_BASE_URL_1280 = "https://image.tmdb.org/t/p/w1280/";
//     public static final String IMAGE_LOADING_BASE_URL_342 = "https://image.tmdb.org/t/p/w342/";
//     public static final String IMAGE_LOADING_BASE_URL_780 = "https://image.tmdb.org/t/p/w780/";
//     public static final String YOUTUBE_WATCH_BASE_URL = "https://www.youtube.com/watch?v=";
//     public static final String YOUTUBE_THUMBNAIL_BASE_URL = "http://img.youtube.com/vi/";
//     public static final String YOUTUBE_THUMBNAIL_IMAGE_QUALITY = "/hqdefault.jpg";
//     public static final String IMDB_BASE_URL = "http://www.imdb.com/title/";
//     public static final int TAG_FAV = 0;
//     public static final int TAG_NOT_FAV = 1;
//     //public static final String TAG_MOVIES_FRAGMENT = "tag_movies_fragment";
//     //public static final String TAG_TV_SHOWS_FRAGMENT = "tag_tv_shows_fragment";
//     //public static final String TAG_FAV_FRAGMENT = "tag_fav_fragment";
// 
// }


import android.content.Context;
import android.content.Intent;
import android.net.Uri;
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.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.hitanshudhawan.popcorn.R;
import com.hitanshudhawan.popcorn.network.videos.Video;
import com.hitanshudhawan.popcorn.utils.Constants;
import java.util.List;
package com.hitanshudhawan.popcorn.adapters;




/**
 * Created by hitanshu on 2/8/17.
 */

public class VideoAdapter extends RecyclerView.Adapter<VideoAdapter.VideoViewHolder> {

    private Context mContext;
// Path: app/src/main/java/com/hitanshudhawan/popcorn/network/videos/Video.java
// public class Video {
// 
//     @SerializedName("id")
//     private String id;
//     //iso_639_1 missing
//     //iso_3166_1 missing
//     @SerializedName("key")
//     private String key;
//     @SerializedName("name")
//     private String name;
//     @SerializedName("site")
//     private String site;
//     @SerializedName("size")
//     private Integer size;
//     @SerializedName("type")
//     private String type;
// 
//     public Video(String id, String key, String name, String site, Integer size, String type) {
//         this.id = id;
//         this.key = key;
//         this.name = name;
//         this.site = site;
//         this.size = size;
//         this.type = type;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String getKey() {
//         return key;
//     }
// 
//     public void setKey(String key) {
//         this.key = key;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public String getSite() {
//         return site;
//     }
// 
//     public void setSite(String site) {
//         this.site = site;
//     }
// 
//     public Integer getSize() {
//         return size;
//     }
// 
//     public void setSize(Integer size) {
//         this.size = size;
//     }
// 
//     public String getType() {
//         return type;
//     }
// 
//     public void setType(String type) {
//         this.type = type;
//     }
// }
// 
// Path: app/src/main/java/com/hitanshudhawan/popcorn/utils/Constants.java
// public class Constants {
// 
//     public static final String FIRST_TIME_LAUNCH = "first_time_launch";
//     public static final String MOVIE_ID = "movie_id";
//     public static final String TV_SHOW_ID = "tv_show_id";
//     public static final String VIEW_ALL_MOVIES_TYPE = "type_view_all_movies";
//     public static final int NOW_SHOWING_MOVIES_TYPE = 1;
//     public static final int POPULAR_MOVIES_TYPE = 2;
//     public static final int UPCOMING_MOVIES_TYPE = 3;
//     public static final int TOP_RATED_MOVIES_TYPE = 4;
//     public static final String VIEW_ALL_TV_SHOWS_TYPE = "type_view_all_tv_shows";
//     public static final int AIRING_TODAY_TV_SHOWS_TYPE = 1;
//     public static final int ON_THE_AIR_TV_SHOWS_TYPE = 2;
//     public static final int POPULAR_TV_SHOWS_TYPE = 3;
//     public static final int TOP_RATED_TV_SHOWS_TYPE = 4;
//     public static final String PERSON_ID = "person_id";
//     public static final String QUERY = "query";
//     public static final String RATING_SYMBOL = "\u2605";
//     public static final String IMAGE_LOADING_BASE_URL_1280 = "https://image.tmdb.org/t/p/w1280/";
//     public static final String IMAGE_LOADING_BASE_URL_342 = "https://image.tmdb.org/t/p/w342/";
//     public static final String IMAGE_LOADING_BASE_URL_780 = "https://image.tmdb.org/t/p/w780/";
//     public static final String YOUTUBE_WATCH_BASE_URL = "https://www.youtube.com/watch?v=";
//     public static final String YOUTUBE_THUMBNAIL_BASE_URL = "http://img.youtube.com/vi/";
//     public static final String YOUTUBE_THUMBNAIL_IMAGE_QUALITY = "/hqdefault.jpg";
//     public static final String IMDB_BASE_URL = "http://www.imdb.com/title/";
//     public static final int TAG_FAV = 0;
//     public static final int TAG_NOT_FAV = 1;
//     //public static final String TAG_MOVIES_FRAGMENT = "tag_movies_fragment";
//     //public static final String TAG_TV_SHOWS_FRAGMENT = "tag_tv_shows_fragment";
//     //public static final String TAG_FAV_FRAGMENT = "tag_fav_fragment";
// 
// }


// Path: app/src/main/java/com/hitanshudhawan/popcorn/adapters/VideoAdapter.java
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
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.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.hitanshudhawan.popcorn.R;
import com.hitanshudhawan.popcorn.network.videos.Video;
import com.hitanshudhawan.popcorn.utils.Constants;
import java.util.List;

package com.hitanshudhawan.popcorn.adapters;




/**
 * Created by hitanshu on 2/8/17.
 */

public class VideoAdapter extends RecyclerView.Adapter<VideoAdapter.VideoViewHolder> {

    private Context mContext;
    private List<Video> mVideos;