// 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 SelectedSession {

    public static final String TABLE = "selected_sessions";

    public static final String ID = "_id";
    public static final String SLOT_TIME = "slot_time";
    public static final String SESSION_ID = "session_id";

    public static final Func1<Cursor, SelectedSession> MAPPER = cursor -> {
        String slotTime = Database.getString(cursor, SLOT_TIME);
// 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/SelectedSession.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 SelectedSession {

    public static final String TABLE = "selected_sessions";

    public static final String ID = "_id";
    public static final String SLOT_TIME = "slot_time";
    public static final String SESSION_ID = "session_id";

    public static final Func1<Cursor, SelectedSession> MAPPER = cursor -> {
        String slotTime = Database.getString(cursor, SLOT_TIME);
        int sessionId = Database.getInt(cursor, SESSION_ID);