mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-14 19:11:12 +01:00
858c962dd0
- add some device and db independent model interfaces for activity samples - use these model interfaces where possible - chart activity does not do device dependent rendering anymore and uses normalized values for all devices - initial interface for daily summaries
17 lines
469 B
Java
17 lines
469 B
Java
package nodomain.freeyourgadget.gadgetbridge.model;
|
|
|
|
public interface SampleProvider {
|
|
public static final byte PROVIDER_MIBAND = 0;
|
|
public static final byte PROVIDER_PEBBLE_MORPHEUZ = 1;
|
|
public static final byte PROVIDER_PEBBLE_GADGETBRIDGE = 2;
|
|
public static final byte PROVIDER_UNKNOWN = 100;
|
|
|
|
int normalizeType(byte rawType);
|
|
|
|
byte toRawActivityKind(int activityKind);
|
|
|
|
float normalizeIntensity(short rawIntensity);
|
|
|
|
byte getID();
|
|
}
|