// Path: app/src/main/java/com/nilhcem/devoxxfr/utils/Database.java
// public class Database {
// 
//     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));
//     }
// 
//     private Database() {
//         throw new UnsupportedOperationException();
//     }
// }


import android.content.ContentValues;
import android.database.Cursor;
import com.nilhcem.devoxxfr.utils.Database;
import rx.functions.Func1;
package com.nilhcem.devoxxfr.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 final String slotTime;
    public final int sessionId;

    public SelectedSession(String slotTime, int sessionId) {
        this.slotTime = slotTime;
        this.sessionId = sessionId;
    }

    public static final Func1<Cursor, SelectedSession> MAPPER = cursor -> {
// Path: app/src/main/java/com/nilhcem/devoxxfr/utils/Database.java
// public class Database {
// 
//     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));
//     }
// 
//     private Database() {
//         throw new UnsupportedOperationException();
//     }
// }


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

package com.nilhcem.devoxxfr.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 final String slotTime;
    public final int sessionId;

    public SelectedSession(String slotTime, int sessionId) {
        this.slotTime = slotTime;
        this.sessionId = sessionId;
    }

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