2015-10-04 15:53:11 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.service.devices.pebble;
|
|
|
|
|
|
|
|
|
|
|
|
import android.util.Pair;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEvent;
|
2016-05-13 23:47:47 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.entities.PebbleActivitySample;
|
2015-10-04 15:53:11 +02:00
|
|
|
|
|
|
|
public class AppMessageHandler {
|
|
|
|
protected final PebbleProtocol mPebbleProtocol;
|
|
|
|
protected final UUID mUUID;
|
|
|
|
|
|
|
|
AppMessageHandler(UUID uuid, PebbleProtocol pebbleProtocol) {
|
|
|
|
mUUID = uuid;
|
|
|
|
mPebbleProtocol = pebbleProtocol;
|
|
|
|
}
|
|
|
|
|
|
|
|
public UUID getUUID() {
|
|
|
|
return mUUID;
|
|
|
|
}
|
|
|
|
|
|
|
|
public GBDeviceEvent[] handleMessage(ArrayList<Pair<Integer, Object>> pairs) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2015-12-23 14:22:28 +01:00
|
|
|
public GBDeviceEvent[] pushMessage() {
|
|
|
|
return null;
|
|
|
|
}
|
2016-05-13 23:47:47 +02:00
|
|
|
|
|
|
|
protected PebbleActivitySample createSample(int timestamp, int intensity, int steps, int type) {
|
|
|
|
// TODO: user and device id
|
|
|
|
Long userId = null;
|
|
|
|
Long deviceId = null;
|
|
|
|
return new PebbleActivitySample(null, timestamp, intensity, steps, type, userId, deviceId);
|
|
|
|
}
|
2015-10-04 15:53:11 +02:00
|
|
|
}
|