2013-10-07 14:20:20 -04:00
|
|
|
package com.uncc.gameday.alerts;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import android.database.sqlite.SQLiteDatabase;
|
|
|
|
|
|
|
|
import com.uncc.gameday.GameDay;
|
|
|
|
import com.uncc.gameday.R;
|
|
|
|
|
|
|
|
public class AlertDB {
|
|
|
|
|
|
|
|
private SQLiteDatabase dbHandle;
|
|
|
|
private SQLiteDatabase.CursorFactory factory;
|
|
|
|
|
|
|
|
public AlertDB() {
|
|
|
|
this.dbHandle = SQLiteDatabase.openOrCreateDatabase(GameDay.getAppContext().getString(R.string.db_path), factory);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void insertAlert(Alert alert) {
|
|
|
|
// Add a new date to the database
|
|
|
|
}
|
2013-10-09 15:14:04 -04:00
|
|
|
|
2013-10-07 14:20:20 -04:00
|
|
|
public void insertAlerts(List<Alert> alarmDates) {
|
|
|
|
// Add multiple new dates to the database
|
|
|
|
}
|
|
|
|
|
2013-10-09 19:39:20 -04:00
|
|
|
public void deleteAlert(Alert alert) {
|
|
|
|
// Remove a date from the database
|
2013-10-07 14:20:20 -04:00
|
|
|
}
|
|
|
|
|
2013-10-09 19:39:20 -04:00
|
|
|
public void deleteAlerts(List<Alert> alerts) {
|
|
|
|
// Remove multiple dates from the database
|
|
|
|
}
|
2013-10-07 14:20:20 -04:00
|
|
|
}
|