mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-28 01:55:40 +02:00
39 lines
900 B
Java
39 lines
900 B
Java
package nodomain.freeyourgadget.gadgetbridge.service.devices.hplus;
|
|
|
|
import java.util.List;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.ActivityKind;
|
|
|
|
/**
|
|
* Created by jpbarraca on 30/12/2016.
|
|
*/
|
|
|
|
public class HPlusDataRecord {
|
|
public final static int TYPE_SLEEP = 1;
|
|
public int activityKind = ActivityKind.TYPE_UNKNOWN;
|
|
|
|
public int timestamp;
|
|
public byte[] rawData;
|
|
|
|
public HPlusDataRecord(byte[] data){
|
|
rawData = data;
|
|
}
|
|
|
|
public byte[] getRawData() {
|
|
|
|
return rawData;
|
|
}
|
|
|
|
public class RecordInterval {
|
|
public int timestampFrom;
|
|
public int timestampTo;
|
|
public int activityKind;
|
|
|
|
RecordInterval(int timestampFrom, int timestampTo, int activityKind) {
|
|
this.timestampFrom = timestampFrom;
|
|
this.timestampTo = timestampTo;
|
|
this.activityKind = activityKind;
|
|
}
|
|
}
|
|
}
|