// Path: app/src/main/java/eu/se_bastiaan/popcorntimeremote/Constants.java
// public final class Constants {
// 
//     public static final Boolean LOG_ENABLED = BuildConfig.IS_DEBUG;
//     public static final String PREFS_FILE = "PTRemote_Prefs";
//     public static final String DATABASE_NAME = "PTRemote_DB.db";
//     public static final Integer DATABASE_VERSION = 1;
//     public static final String YOUTUBE_KEY = "AIzaSyC4GRG3DH0HyYvDpmLHqwmpKEhgpCBjduo";
// 
//     private Constants() throws InstantiationException {
//         throw new InstantiationException("This class is not created for instantiation");
//     }
// 
// }


import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import eu.se_bastiaan.popcorntimeremote.Constants;
package eu.se_bastiaan.popcorntimeremote.database;



public class InstanceDbHelper extends SQLiteOpenHelper {

    private static final String TEXT_TYPE = " TEXT";
    private static final String COMMA_SEP = ",";
    private static final String SQL_CREATE_ENTRIES =
            "CREATE TABLE " + InstanceEntry.TABLE_NAME + " (" +
                    InstanceEntry._ID + " INTEGER PRIMARY KEY," +
                    InstanceEntry.COLUMN_NAME_IP + TEXT_TYPE + COMMA_SEP +
                    InstanceEntry.COLUMN_NAME_PORT + TEXT_TYPE + COMMA_SEP +
                    InstanceEntry.COLUMN_NAME_NAME + TEXT_TYPE + COMMA_SEP +
                    InstanceEntry.COLUMN_NAME_USERNAME + TEXT_TYPE + COMMA_SEP +
                    InstanceEntry.COLUMN_NAME_PASSWORD + TEXT_TYPE +
                    " )";

    public InstanceDbHelper(Context context) {
// Path: app/src/main/java/eu/se_bastiaan/popcorntimeremote/Constants.java
// public final class Constants {
// 
//     public static final Boolean LOG_ENABLED = BuildConfig.IS_DEBUG;
//     public static final String PREFS_FILE = "PTRemote_Prefs";
//     public static final String DATABASE_NAME = "PTRemote_DB.db";
//     public static final Integer DATABASE_VERSION = 1;
//     public static final String YOUTUBE_KEY = "AIzaSyC4GRG3DH0HyYvDpmLHqwmpKEhgpCBjduo";
// 
//     private Constants() throws InstantiationException {
//         throw new InstantiationException("This class is not created for instantiation");
//     }
// 
// }


// Path: app/src/main/java/eu/se_bastiaan/popcorntimeremote/database/InstanceDbHelper.java
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import eu.se_bastiaan.popcorntimeremote.Constants;

package eu.se_bastiaan.popcorntimeremote.database;



public class InstanceDbHelper extends SQLiteOpenHelper {

    private static final String TEXT_TYPE = " TEXT";
    private static final String COMMA_SEP = ",";
    private static final String SQL_CREATE_ENTRIES =
            "CREATE TABLE " + InstanceEntry.TABLE_NAME + " (" +
                    InstanceEntry._ID + " INTEGER PRIMARY KEY," +
                    InstanceEntry.COLUMN_NAME_IP + TEXT_TYPE + COMMA_SEP +
                    InstanceEntry.COLUMN_NAME_PORT + TEXT_TYPE + COMMA_SEP +
                    InstanceEntry.COLUMN_NAME_NAME + TEXT_TYPE + COMMA_SEP +
                    InstanceEntry.COLUMN_NAME_USERNAME + TEXT_TYPE + COMMA_SEP +
                    InstanceEntry.COLUMN_NAME_PASSWORD + TEXT_TYPE +
                    " )";

    public InstanceDbHelper(Context context) {
        super(context, Constants.DATABASE_NAME, null, Constants.DATABASE_VERSION);