Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/SampleProvider.java
cpfeiffer 858c962dd0 Refactoring #45
- 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
2015-07-28 00:05:05 +02:00

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();
}