// Path: app/src/main/java/in/sahildave/gazetti/bookmarks/sqlite/BookmarkModel.java
// public class BookmarkModel {
// 
//     private String newspaperName;
//     private String categoryName;
//     private String mArticleHeadline;
//     private String mArticleBody;
//     private String mArticleImageURL;
//     private String mArticlePubDate;
//     private String mArticleURL;
// 
//     public String getNewspaperName() {
//         return newspaperName;
//     }
// 
//     public void setNewspaperName(String newspaperName) {
//         this.newspaperName = newspaperName;
//     }
// 
//     public String getCategoryName() {
//         return categoryName;
//     }
// 
//     public void setCategoryName(String categoryName) {
//         this.categoryName = categoryName;
//     }
// 
//     public String getmArticleHeadline() {
//         return mArticleHeadline;
//     }
// 
//     public void setmArticleHeadline(String mArticleHeadline) {
//         this.mArticleHeadline = mArticleHeadline;
//     }
// 
//     public String getmArticleBody() {
//         return mArticleBody;
//     }
// 
//     public void setmArticleBody(String mArticleBody) {
//         this.mArticleBody = mArticleBody;
//     }
// 
//     public String getmArticleURL() {
//         return mArticleURL;
//     }
// 
//     public void setmArticleURL(String mArticleURL) {
//         this.mArticleURL = mArticleURL;
//     }
// 
//     public String getmArticleImageURL() {
//         if(mArticleImageURL==null){
//             return "";
//         }
//         return mArticleImageURL;
//     }
// 
//     public void setmArticleImageURL(String mArticleImageURL) {
//         this.mArticleImageURL = mArticleImageURL;
//     }
// 
//     public String getmArticlePubDate() {
//         if(mArticlePubDate==null){
//             return "";
//         }
//         return mArticlePubDate;
//     }
// 
//     public void setmArticlePubDate(String mArticlePubDate) {
//         this.mArticlePubDate = mArticlePubDate;
//     }
// 
//     @Override
//     public String toString() {
//         return getmArticleHeadline();
//     }
// }


import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.crashlytics.android.Crashlytics;
import in.sahildave.gazetti.R;
import in.sahildave.gazetti.bookmarks.sqlite.BookmarkModel;
import java.util.HashMap;
import java.util.List;
package in.sahildave.gazetti.bookmarks;



public class BookmarkAdapter extends ArrayAdapter<BookmarkModel> {

    private static final String LOG_TAG = BookmarkAdapter.class.getName();
    private static final int SECOND_MILLIS = 1000;
    private static final int MINUTE_MILLIS = 60 * SECOND_MILLIS;
    private static final int HOUR_MILLIS = 60 * MINUTE_MILLIS;
    private static final int DAY_MILLIS = 24 * HOUR_MILLIS;

    private Activity ctx;

    public static HashMap<String, String> linkMap = new HashMap<String, String>();
    public static HashMap<String, String> catNameMap = new HashMap<String, String>();
    public static HashMap<String, String> npNameMap = new HashMap<String, String>();
    public static HashMap<String, String> articleImage = new HashMap<String, String>();
    public static HashMap<String, String> articleBody = new HashMap<String, String>();
    public static HashMap<String, String> pubDateMap = new HashMap<String, String>();

// Path: app/src/main/java/in/sahildave/gazetti/bookmarks/sqlite/BookmarkModel.java
// public class BookmarkModel {
// 
//     private String newspaperName;
//     private String categoryName;
//     private String mArticleHeadline;
//     private String mArticleBody;
//     private String mArticleImageURL;
//     private String mArticlePubDate;
//     private String mArticleURL;
// 
//     public String getNewspaperName() {
//         return newspaperName;
//     }
// 
//     public void setNewspaperName(String newspaperName) {
//         this.newspaperName = newspaperName;
//     }
// 
//     public String getCategoryName() {
//         return categoryName;
//     }
// 
//     public void setCategoryName(String categoryName) {
//         this.categoryName = categoryName;
//     }
// 
//     public String getmArticleHeadline() {
//         return mArticleHeadline;
//     }
// 
//     public void setmArticleHeadline(String mArticleHeadline) {
//         this.mArticleHeadline = mArticleHeadline;
//     }
// 
//     public String getmArticleBody() {
//         return mArticleBody;
//     }
// 
//     public void setmArticleBody(String mArticleBody) {
//         this.mArticleBody = mArticleBody;
//     }
// 
//     public String getmArticleURL() {
//         return mArticleURL;
//     }
// 
//     public void setmArticleURL(String mArticleURL) {
//         this.mArticleURL = mArticleURL;
//     }
// 
//     public String getmArticleImageURL() {
//         if(mArticleImageURL==null){
//             return "";
//         }
//         return mArticleImageURL;
//     }
// 
//     public void setmArticleImageURL(String mArticleImageURL) {
//         this.mArticleImageURL = mArticleImageURL;
//     }
// 
//     public String getmArticlePubDate() {
//         if(mArticlePubDate==null){
//             return "";
//         }
//         return mArticlePubDate;
//     }
// 
//     public void setmArticlePubDate(String mArticlePubDate) {
//         this.mArticlePubDate = mArticlePubDate;
//     }
// 
//     @Override
//     public String toString() {
//         return getmArticleHeadline();
//     }
// }


// Path: app/src/main/java/in/sahildave/gazetti/bookmarks/BookmarkAdapter.java
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.crashlytics.android.Crashlytics;
import in.sahildave.gazetti.R;
import in.sahildave.gazetti.bookmarks.sqlite.BookmarkModel;
import java.util.HashMap;
import java.util.List;

package in.sahildave.gazetti.bookmarks;



public class BookmarkAdapter extends ArrayAdapter<BookmarkModel> {

    private static final String LOG_TAG = BookmarkAdapter.class.getName();
    private static final int SECOND_MILLIS = 1000;
    private static final int MINUTE_MILLIS = 60 * SECOND_MILLIS;
    private static final int HOUR_MILLIS = 60 * MINUTE_MILLIS;
    private static final int DAY_MILLIS = 24 * HOUR_MILLIS;

    private Activity ctx;

    public static HashMap<String, String> linkMap = new HashMap<String, String>();
    public static HashMap<String, String> catNameMap = new HashMap<String, String>();
    public static HashMap<String, String> npNameMap = new HashMap<String, String>();
    public static HashMap<String, String> articleImage = new HashMap<String, String>();
    public static HashMap<String, String> articleBody = new HashMap<String, String>();
    public static HashMap<String, String> pubDateMap = new HashMap<String, String>();

    private List<BookmarkModel> articleObjectList;