mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 18:41:14 +01:00
1d41f2f8e4
The notfification APIs now use NotificationSpec as their only parameter, which contains all information (required and optional ones). We no longer have separate methods and actions for SMS/EMAIL/GENERIC anymore. The type of notification is important now, not how we received them technically.
31 lines
1.0 KiB
Java
31 lines
1.0 KiB
Java
package nodomain.freeyourgadget.gadgetbridge.database;
|
|
|
|
import android.database.sqlite.SQLiteDatabase;
|
|
import android.database.sqlite.SQLiteOpenHelper;
|
|
|
|
import java.util.List;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.GBApplication;
|
|
import nodomain.freeyourgadget.gadgetbridge.devices.SampleProvider;
|
|
import nodomain.freeyourgadget.gadgetbridge.model.ActivitySample;
|
|
|
|
public interface DBHandler {
|
|
public SQLiteOpenHelper getHelper();
|
|
|
|
/**
|
|
* Releases the DB handler. No access may be performed after calling this method.
|
|
* Same as calling {@link GBApplication#releaseDB()}
|
|
*/
|
|
void release();
|
|
|
|
List<ActivitySample> getAllActivitySamples(int tsFrom, int tsTo, SampleProvider provider);
|
|
|
|
List<ActivitySample> getActivitySamples(int tsFrom, int tsTo, SampleProvider provider);
|
|
|
|
List<ActivitySample> getSleepSamples(int tsFrom, int tsTo, SampleProvider provider);
|
|
|
|
void addGBActivitySample(int timestamp, byte provider, short intensity, short steps, byte kind);
|
|
|
|
SQLiteDatabase getWritableDatabase();
|
|
}
|