2015-07-27 23:49:53 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.model;
|
|
|
|
|
2015-08-03 23:09:49 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.devices.SampleProvider;
|
2015-07-27 23:49:53 +02:00
|
|
|
|
|
|
|
public interface ActivitySample {
|
|
|
|
/**
|
|
|
|
* Returns the provider of the data.
|
2015-07-28 17:30:20 +02:00
|
|
|
*
|
2015-07-27 23:49:53 +02:00
|
|
|
* @return who created the sample data
|
|
|
|
*/
|
|
|
|
SampleProvider getProvider();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Timestamp of the sample, resolution is seconds!
|
|
|
|
*/
|
|
|
|
int getTimestamp();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the raw activity kind value as recorded by the SampleProvider
|
|
|
|
*/
|
|
|
|
byte getRawKind();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the activity kind value as recorded by the SampleProvider
|
2015-07-28 17:30:20 +02:00
|
|
|
*
|
2015-07-27 23:49:53 +02:00
|
|
|
* @see ActivityKind
|
|
|
|
*/
|
|
|
|
int getKind();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the raw intensity value as recorded by the SampleProvider
|
|
|
|
*/
|
|
|
|
short getRawIntensity();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the normalized intensity value between 0 and 1
|
|
|
|
*/
|
|
|
|
float getIntensity();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the number of steps performed during the period of this sample
|
|
|
|
*/
|
|
|
|
short getSteps();
|
2016-02-26 00:30:57 +01:00
|
|
|
|
2016-02-26 23:45:17 +01:00
|
|
|
short getCustomShortValue();
|
2015-07-27 23:49:53 +02:00
|
|
|
}
|