2015-08-18 01:26:15 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.service.serial;
|
2015-06-23 14:20:13 +02:00
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEvent;
|
2015-09-24 14:45:21 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.NotificationSpec;
|
2015-06-23 14:20:13 +02:00
|
|
|
|
|
|
|
public abstract class GBDeviceProtocol {
|
|
|
|
|
2015-09-24 14:45:21 +02:00
|
|
|
public byte[] encodeNotification(NotificationSpec notificationSpec) {
|
2015-06-23 14:20:13 +02:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2015-08-21 00:58:18 +02:00
|
|
|
public byte[] encodeSetTime() {
|
2015-06-23 14:20:13 +02:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2016-04-04 20:08:34 +02:00
|
|
|
public byte[] encodeSetCallState(String number, String name, int command) {
|
2015-06-23 14:20:13 +02:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2016-03-27 17:44:20 +02:00
|
|
|
public byte[] encodeSetMusicInfo(String artist, String album, String track, int duration, int trackCount, int trackNr) {
|
2015-06-23 14:20:13 +02:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte[] encodeFirmwareVersionReq() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte[] encodeAppInfoReq() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2015-06-24 00:23:38 +02:00
|
|
|
public byte[] encodeScreenshotReq() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2015-06-23 14:20:13 +02:00
|
|
|
public byte[] encodeAppDelete(UUID uuid) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2015-09-13 21:44:26 +02:00
|
|
|
public byte[] encodeAppStart(UUID uuid, boolean start) {
|
2015-06-23 14:20:13 +02:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte[] encodeSynchronizeActivityData() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte[] encodeReboot() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte[] encodeFindDevice(boolean start) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2015-09-02 08:00:26 +02:00
|
|
|
public byte[] encodeEnableRealtimeSteps(boolean enable) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2016-04-04 20:08:34 +02:00
|
|
|
public byte[] encodeEnableHeartRateSleepSupport(boolean enable) {
|
|
|
|
return null;
|
|
|
|
}
|
2016-04-03 22:38:06 +02:00
|
|
|
|
2015-08-27 15:02:29 +02:00
|
|
|
public GBDeviceEvent[] decodeResponse(byte[] responseData) {
|
2015-06-23 14:20:13 +02:00
|
|
|
return null;
|
|
|
|
}
|
2015-09-13 00:39:53 +02:00
|
|
|
}
|