// Path: checkpoint_6/src/main/java/com/android/example/leanback/data/Video.java
// public class Video implements Serializable {
// 
//     public static final String INTENT_EXTRA_VIDEO = "INTENT_EXTRA_VIDEO";
//     private long id;
//     private int year;
//     private int rating;
//     private String description;
//     private String title;
//     private String thumbUrl;
//     private String contentUrl;
//     private String category;
//     private String tags;
// 
//     public int getYear() {
//         return year;
//     }
// 
//     public void setYear(int year) {
//         this.year = year;
//     }
// 
//     public int getRating() {
//         return rating;
//     }
// 
//     public void setRating(int rating) {
//         this.rating = rating;
//     }
// 
//     public String getDescription() {
//         return description;
//     }
// 
//     public void setDescription(String description) {
//         this.description = description;
//     }
// 
//     public String getTitle() {
//         return title;
//     }
// 
//     public void setTitle(String title) {
//         this.title = title;
//     }
// 
//     public String getThumbUrl() {
//         return thumbUrl;
//     }
// 
//     public void setThumbUrl(String thumbUrl) {
//         this.thumbUrl = thumbUrl;
//     }
// 
//     public String getContentUrl() {
//         return contentUrl;
//     }
// 
//     public void setContentUrl(String contentUrl) {
//         this.contentUrl = contentUrl;
//     }
// 
//     public String getCategory() {
//         return category;
//     }
// 
//     public void setCategory(String category) {
//         this.category = category;
//     }
// 
//     public String getTags() {
//         return tags;
//     }
// 
//     public void setTags(String tags) {
//         this.tags = tags;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public long getId() {
//         return id;
//     }
// }


import com.squareup.picasso.Picasso;
import com.squareup.picasso.Target;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.support.v17.leanback.widget.ImageCardView;
import android.support.v17.leanback.widget.Presenter;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.android.example.leanback.R;
import com.android.example.leanback.data.Video;
/*
 * Copyright 2014 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.example.leanback.fastlane;



/**
 * Created by anirudhd on 11/2/14.
 */
public class CardPresenter extends Presenter {

    private static int CARD_WIDTH = 200;
    private static int CARD_HEIGHT = 200;

    private static Context mContext;

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup viewGroup) {

        Log.d("onCreateViewHolder", "creating viewholder");
        mContext = viewGroup.getContext();
// Path: checkpoint_6/src/main/java/com/android/example/leanback/data/Video.java
// public class Video implements Serializable {
// 
//     public static final String INTENT_EXTRA_VIDEO = "INTENT_EXTRA_VIDEO";
//     private long id;
//     private int year;
//     private int rating;
//     private String description;
//     private String title;
//     private String thumbUrl;
//     private String contentUrl;
//     private String category;
//     private String tags;
// 
//     public int getYear() {
//         return year;
//     }
// 
//     public void setYear(int year) {
//         this.year = year;
//     }
// 
//     public int getRating() {
//         return rating;
//     }
// 
//     public void setRating(int rating) {
//         this.rating = rating;
//     }
// 
//     public String getDescription() {
//         return description;
//     }
// 
//     public void setDescription(String description) {
//         this.description = description;
//     }
// 
//     public String getTitle() {
//         return title;
//     }
// 
//     public void setTitle(String title) {
//         this.title = title;
//     }
// 
//     public String getThumbUrl() {
//         return thumbUrl;
//     }
// 
//     public void setThumbUrl(String thumbUrl) {
//         this.thumbUrl = thumbUrl;
//     }
// 
//     public String getContentUrl() {
//         return contentUrl;
//     }
// 
//     public void setContentUrl(String contentUrl) {
//         this.contentUrl = contentUrl;
//     }
// 
//     public String getCategory() {
//         return category;
//     }
// 
//     public void setCategory(String category) {
//         this.category = category;
//     }
// 
//     public String getTags() {
//         return tags;
//     }
// 
//     public void setTags(String tags) {
//         this.tags = tags;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public long getId() {
//         return id;
//     }
// }


// Path: checkpoint_4/src/main/java/com/android/example/leanback/fastlane/CardPresenter.java
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Target;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.support.v17.leanback.widget.ImageCardView;
import android.support.v17.leanback.widget.Presenter;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.android.example.leanback.R;
import com.android.example.leanback.data.Video;

/*
 * Copyright 2014 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.example.leanback.fastlane;



/**
 * Created by anirudhd on 11/2/14.
 */
public class CardPresenter extends Presenter {

    private static int CARD_WIDTH = 200;
    private static int CARD_HEIGHT = 200;

    private static Context mContext;

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup viewGroup) {

        Log.d("onCreateViewHolder", "creating viewholder");
        mContext = viewGroup.getContext();
        ImageCardView cardView = new ImageCardView(mContext);