// Path: app/src/main/java/com/nilhcem/droidconde/utils/Database.java
// public class Database {
// 
//     private Database() {
//         throw new UnsupportedOperationException();
//     }
// 
//     public static String getString(Cursor cursor, String columnName) {
//         return cursor.getString(cursor.getColumnIndexOrThrow(columnName));
//     }
// 
//     public static int getInt(Cursor cursor, String columnName) {
//         return cursor.getInt(cursor.getColumnIndexOrThrow(columnName));
//     }
// }


import android.content.ContentValues;
import android.database.Cursor;
import com.nilhcem.droidconde.utils.Database;
import rx.functions.Func1;
package com.nilhcem.droidconde.data.database.model;




public class Speaker {

    public static final String TABLE = "speakers";

    public static final String ID = "_id";
    public static final String NAME = "name";
    public static final String TITLE = "title";
    public static final String BIO = "bio";
    public static final String WEBSITE = "website";
    public static final String TWITTER = "twitter";
    public static final String GITHUB = "github";
    public static final String PHOTO = "photo";

    public static final Func1<Cursor, Speaker> MAPPER = cursor -> {
// Path: app/src/main/java/com/nilhcem/droidconde/utils/Database.java
// public class Database {
// 
//     private Database() {
//         throw new UnsupportedOperationException();
//     }
// 
//     public static String getString(Cursor cursor, String columnName) {
//         return cursor.getString(cursor.getColumnIndexOrThrow(columnName));
//     }
// 
//     public static int getInt(Cursor cursor, String columnName) {
//         return cursor.getInt(cursor.getColumnIndexOrThrow(columnName));
//     }
// }


// Path: app/src/main/java/com/nilhcem/droidconde/data/database/model/Speaker.java
import android.content.ContentValues;
import android.database.Cursor;
import com.nilhcem.droidconde.utils.Database;
import rx.functions.Func1;

package com.nilhcem.droidconde.data.database.model;




public class Speaker {

    public static final String TABLE = "speakers";

    public static final String ID = "_id";
    public static final String NAME = "name";
    public static final String TITLE = "title";
    public static final String BIO = "bio";
    public static final String WEBSITE = "website";
    public static final String TWITTER = "twitter";
    public static final String GITHUB = "github";
    public static final String PHOTO = "photo";

    public static final Func1<Cursor, Speaker> MAPPER = cursor -> {
        int id = Database.getInt(cursor, ID);