mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-06-01 19:06:06 +02:00
26 lines
663 B
Java
26 lines
663 B
Java
package nodomain.freeyourgadget.gadgetbridge.service.devices.garmin.agps;
|
|
|
|
public enum GarminAgpsDataType {
|
|
GLONASS("CPE_GLO.BIN"), QZSS("CPE_QZSS.BIN"), GPS("CPE_GPS.BIN"),
|
|
GALILEO("CPE_GAL.BIN");
|
|
|
|
private final String fileName;
|
|
|
|
GarminAgpsDataType(String fileName) {
|
|
this.fileName = fileName;
|
|
}
|
|
|
|
public String getFileName() {
|
|
return fileName;
|
|
}
|
|
|
|
public static boolean isValidAgpsDataFileName(String fileName) {
|
|
for (GarminAgpsDataType type: GarminAgpsDataType.values()) {
|
|
if (fileName.equals(type.fileName)) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|