2017-01-23 01:08:36 +01:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.devices.hplus;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @author João Paulo Barraca <jpbarraca@gmail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
import android.support.annotation.NonNull;
|
|
|
|
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.impl.GBDeviceCandidate;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.DeviceType;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Pseudo Coordinator for the Makibes F68, a sub type of the HPLUS devices
|
|
|
|
*/
|
|
|
|
public class MakibesF68Coordinator extends HPlusCoordinator {
|
|
|
|
|
|
|
|
@NonNull
|
|
|
|
@Override
|
|
|
|
public DeviceType getSupportedType(GBDeviceCandidate candidate) {
|
|
|
|
String name = candidate.getDevice().getName();
|
|
|
|
if(name != null && name.startsWith("SPORT")){
|
|
|
|
return DeviceType.MAKIBESF68;
|
|
|
|
}
|
|
|
|
|
|
|
|
return DeviceType.UNKNOWN;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public DeviceType getDeviceType() {
|
|
|
|
return DeviceType.MAKIBESF68;
|
|
|
|
}
|
2017-01-31 00:37:47 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getManufacturer() {
|
|
|
|
return "Makibes";
|
|
|
|
}
|
|
|
|
|
2017-01-23 01:08:36 +01:00
|
|
|
}
|