mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-07-16 18:34:03 +02:00
dccb8ed1c4
- use `BLETypeConversions`, added the missing functions there (+ unit tests for all) - change Java package of Protobuf definitions so that they are not discarded by Proguard -- +add subpackages to the Proguard rules so we can subdivide the classes + disable device-specific settings for Vivomove (no settings yet)
45 lines
1.2 KiB
Protocol Buffer
45 lines
1.2 KiB
Protocol Buffer
syntax = "proto2";
|
|
|
|
package garmin_vivomovehr;
|
|
|
|
option java_package = "nodomain.freeyourgadget.gadgetbridge.proto.vivomovehr";
|
|
|
|
message DeviceStatusService {
|
|
optional RemoteDeviceBatteryStatusChangedNotification remote_device_battery_status_changed_notification = 1;
|
|
optional RemoteDeviceBatteryStatusRequest remote_device_battery_status_request = 2;
|
|
optional RemoteDeviceBatteryStatusResponse remote_device_battery_status_response = 3;
|
|
optional ActivityStatusRequest activity_status_request = 4;
|
|
optional ActivityStatusResponse activity_status_response = 5;
|
|
|
|
message RemoteDeviceBatteryStatusChangedNotification {
|
|
}
|
|
|
|
message RemoteDeviceBatteryStatusRequest {
|
|
}
|
|
|
|
message RemoteDeviceBatteryStatusResponse {
|
|
optional ResponseStatus status = 1;
|
|
optional int32 current_battery_level = 2;
|
|
}
|
|
|
|
message ActivityStatusRequest {
|
|
}
|
|
|
|
message ActivityStatusResponse {
|
|
optional ActivityStatus status = 1;
|
|
|
|
enum ActivityStatus {
|
|
OFF = 0;
|
|
STOPPED = 1;
|
|
PAUSED = 2;
|
|
ON = 3;
|
|
}
|
|
}
|
|
|
|
enum ResponseStatus {
|
|
UNKNOWN_RESPONSE_STATUS = 0;
|
|
OK = 1;
|
|
NO_REMOTE_DEVICE = 2;
|
|
}
|
|
}
|