1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-01 19:06:06 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/garmin/deviceevents/SupportedFileTypesDeviceEvent.java
Daniele Gobbetti 554e33adaa Garmin protocol: basic file transfer and notification handling
adds synchronization of supported files from watch to external directory
adds support for Activity and Monitoring files (workouts and activity samples), but those are not integrated yet
adds upload functionality (not used ATM and not tested)
adds notification support without actions
introduces centralized processing of "messageHandlers" (protobuf, file transfer, notifications)

also properly dispose of the music timer when disconnecting
2024-05-03 20:28:11 +02:00

20 lines
595 B
Java

package nodomain.freeyourgadget.gadgetbridge.service.devices.garmin.deviceevents;
import java.util.List;
import nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEvent;
import nodomain.freeyourgadget.gadgetbridge.service.devices.garmin.FileType;
public class SupportedFileTypesDeviceEvent extends GBDeviceEvent {
private final List<FileType> supportedFileTypes;
public SupportedFileTypesDeviceEvent(List<FileType> fileTypes) {
this.supportedFileTypes = fileTypes;
}
public List<FileType> getSupportedFileTypes() {
return supportedFileTypes;
}
}