// 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;
        TextView title;
        ImageView profile;


        public ViewHolder(View itemView) {
            super(itemView);
            title = (TextView) itemView.findViewById(R.id.bookmarks_event_title);
            profile = (ImageView) itemView.findViewById(R.id.bookmarks_event_icon);

        }
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        BookmarkItem that = (BookmarkItem) o;

        if (!bookmarkTitle.equals(that.bookmarkTitle)) return false;
        return eventFacebookUrl != null ? eventFacebookUrl.equals(that.eventFacebookUrl) : that.eventFacebookUrl == null;

    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + bookmarkTitle.hashCode();
// 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;

        TextView title;
        ImageView profile;


        public ViewHolder(View itemView) {
            super(itemView);
            title = (TextView) itemView.findViewById(R.id.bookmarks_event_title);
            profile = (ImageView) itemView.findViewById(R.id.bookmarks_event_icon);

        }
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        BookmarkItem that = (BookmarkItem) o;

        if (!bookmarkTitle.equals(that.bookmarkTitle)) return false;
        return eventFacebookUrl != null ? eventFacebookUrl.equals(that.eventFacebookUrl) : that.eventFacebookUrl == null;

    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + bookmarkTitle.hashCode();
        result = 31 * result + (eventFacebookUrl != null ? eventFacebookUrl.hashCode() : 0);