// Path: sample/src/main/java/com/agna/ferro/sample/domain/Book.java
// public class Book {
//     private String id;
//     private String name;
//     private int downloadProgress;
//     private String imageUrl;
// 
//     public Book(String id, String name, String imageUrl) {
//         this.id = id;
//         this.name = name;
//         this.imageUrl = imageUrl;
//         this.downloadProgress = -1;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public String getImageUrl() {
//         return imageUrl;
//     }
// 
//     public boolean isDownloaded() {
//         return downloadProgress == 100;
//     }
// 
//     public boolean isDownloading() {
//         return downloadProgress >= 0;
//     }
// 
//     public int getDownloadProgress() {
//         return downloadProgress;
//     }
// 
//     public void setDownloadProgress(int downloadProgress) {
//         this.downloadProgress = downloadProgress;
//     }
// }


import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.agna.ferro.sample.R;
import com.agna.ferro.sample.domain.Book;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.drawable.GlideDrawable;
import com.bumptech.glide.request.RequestListener;
import com.bumptech.glide.request.target.Target;
package com.agna.ferro.sample.ui.screen.catalog.grid;



/**
 * ViewHolder for Book
 */
public class BookHolder extends RecyclerView.ViewHolder {

    private final TextView name;
    private final ImageView image;
    private final Button downloadBtn;
    private final View readBtn;
// Path: sample/src/main/java/com/agna/ferro/sample/domain/Book.java
// public class Book {
//     private String id;
//     private String name;
//     private int downloadProgress;
//     private String imageUrl;
// 
//     public Book(String id, String name, String imageUrl) {
//         this.id = id;
//         this.name = name;
//         this.imageUrl = imageUrl;
//         this.downloadProgress = -1;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public String getImageUrl() {
//         return imageUrl;
//     }
// 
//     public boolean isDownloaded() {
//         return downloadProgress == 100;
//     }
// 
//     public boolean isDownloading() {
//         return downloadProgress >= 0;
//     }
// 
//     public int getDownloadProgress() {
//         return downloadProgress;
//     }
// 
//     public void setDownloadProgress(int downloadProgress) {
//         this.downloadProgress = downloadProgress;
//     }
// }


// Path: sample/src/main/java/com/agna/ferro/sample/ui/screen/catalog/grid/BookHolder.java
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.agna.ferro.sample.R;
import com.agna.ferro.sample.domain.Book;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.drawable.GlideDrawable;
import com.bumptech.glide.request.RequestListener;
import com.bumptech.glide.request.target.Target;

package com.agna.ferro.sample.ui.screen.catalog.grid;



/**
 * ViewHolder for Book
 */
public class BookHolder extends RecyclerView.ViewHolder {

    private final TextView name;
    private final ImageView image;
    private final Button downloadBtn;
    private final View readBtn;
    private Book book;