// Path: app/src/main/java/com/projects/elad/hacklist/data/db/BookmarkDbEntity.java
// public class BookmarkDbEntity extends RealmObject {
//     @PrimaryKey
//     private String eventTitle;
//     private String facebookUrl;
// 
// 
//     public BookmarkDbEntity() {
// 
//     }
// 
//     public BookmarkDbEntity(ListItem item) {
//         this.eventTitle = item.getTitle();
//         this.facebookUrl = item.getFacebookUrl();
//     }
// 
// 
//     public String getEventTitle() {
//         return eventTitle;
//     }
// 
//     public String getFacebookUrl() {
//         return facebookUrl;
//     }
// 
//     public void setEventTitle(String eventTitle) {
//         this.eventTitle = eventTitle;
//     }
// 
//     public void setFacebookUrl(String facebookUrl) {
//         this.facebookUrl = facebookUrl;
//     }
// }
// 
// Path: app/src/main/java/com/projects/elad/hacklist/util/Utils.java
// public class Utils {
// 
// 
//   // get month in calender format and gives a string
//   public static String getStringForMonthInt(int monthInt) {
//     int temp = monthInt + 1;
//     StringBuilder resultString = new StringBuilder();
//     if (temp > 0 && temp < 10) {
//       resultString.append("0").append(String.valueOf(temp));
//     } else {
//       resultString.append(String.valueOf(temp));
//     }
//     return resultString.toString();
//   }
// 
//   public static String getPageIdFromUrl(String url) {
// 
//     StringBuilder resultUrl = new StringBuilder();
//     resultUrl.append(Constants.FACEBOOK_API_GET_PAGE_PICTURE);
//     int slashIndex = url.lastIndexOf('/');
// 
//     resultUrl.append(url.substring(slashIndex + 1)).append("/picture?type=large");
// 
//     return resultUrl.toString();
// 
//   }
// 
// }


import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.mikepenz.fastadapter.items.AbstractItem;
import com.projects.elad.hacklist.R;
import com.projects.elad.hacklist.data.db.BookmarkDbEntity;
import com.projects.elad.hacklist.util.Utils;
import com.squareup.picasso.Picasso;


    public String getBookmarkTitle() {
        return bookmarkTitle;
    }

    public String getEventFacebookUrl() {
        return eventFacebookUrl;
    }

    public Context getContext() {
        return context;
    }

    @Override
    public int getType() {
        return 0;
    }

    @Override
    public int getLayoutRes() {
        return R.layout.bookmark_event_item;
    }


    @Override
    public void bindView(BookmarkItem.ViewHolder holder) {
        super.bindView(holder);
        holder.title.setText(bookmarkTitle);
        Picasso.with(context)
// Path: app/src/main/java/com/projects/elad/hacklist/data/db/BookmarkDbEntity.java
// public class BookmarkDbEntity extends RealmObject {
//     @PrimaryKey
//     private String eventTitle;
//     private String facebookUrl;
// 
// 
//     public BookmarkDbEntity() {
// 
//     }
// 
//     public BookmarkDbEntity(ListItem item) {
//         this.eventTitle = item.getTitle();
//         this.facebookUrl = item.getFacebookUrl();
//     }
// 
// 
//     public String getEventTitle() {
//         return eventTitle;
//     }
// 
//     public String getFacebookUrl() {
//         return facebookUrl;
//     }
// 
//     public void setEventTitle(String eventTitle) {
//         this.eventTitle = eventTitle;
//     }
// 
//     public void setFacebookUrl(String facebookUrl) {
//         this.facebookUrl = facebookUrl;
//     }
// }
// 
// Path: app/src/main/java/com/projects/elad/hacklist/util/Utils.java
// public class Utils {
// 
// 
//   // get month in calender format and gives a string
//   public static String getStringForMonthInt(int monthInt) {
//     int temp = monthInt + 1;
//     StringBuilder resultString = new StringBuilder();
//     if (temp > 0 && temp < 10) {
//       resultString.append("0").append(String.valueOf(temp));
//     } else {
//       resultString.append(String.valueOf(temp));
//     }
//     return resultString.toString();
//   }
// 
//   public static String getPageIdFromUrl(String url) {
// 
//     StringBuilder resultUrl = new StringBuilder();
//     resultUrl.append(Constants.FACEBOOK_API_GET_PAGE_PICTURE);
//     int slashIndex = url.lastIndexOf('/');
// 
//     resultUrl.append(url.substring(slashIndex + 1)).append("/picture?type=large");
// 
//     return resultUrl.toString();
// 
//   }
// 
// }


// Path: app/src/main/java/com/projects/elad/hacklist/presentation/main/adapters/BookmarkItem.java
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.mikepenz.fastadapter.items.AbstractItem;
import com.projects.elad.hacklist.R;
import com.projects.elad.hacklist.data.db.BookmarkDbEntity;
import com.projects.elad.hacklist.util.Utils;
import com.squareup.picasso.Picasso;



    public String getBookmarkTitle() {
        return bookmarkTitle;
    }

    public String getEventFacebookUrl() {
        return eventFacebookUrl;
    }

    public Context getContext() {
        return context;
    }

    @Override
    public int getType() {
        return 0;
    }

    @Override
    public int getLayoutRes() {
        return R.layout.bookmark_event_item;
    }


    @Override
    public void bindView(BookmarkItem.ViewHolder holder) {
        super.bindView(holder);
        holder.title.setText(bookmarkTitle);
        Picasso.with(context)
                .load(Utils.getPageIdFromUrl(eventFacebookUrl))