2015-05-05 00:48:02 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.pebble;
|
|
|
|
|
|
|
|
import android.app.Activity;
|
|
|
|
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.DeviceCoordinator;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.DeviceType;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.GBDevice;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.discovery.DeviceCandidate;
|
|
|
|
|
|
|
|
public class PebbleCoordinator implements DeviceCoordinator {
|
|
|
|
@Override
|
|
|
|
public boolean supports(DeviceCandidate candidate) {
|
2015-05-10 15:52:19 +02:00
|
|
|
return candidate.getName().startsWith("Pebble");
|
2015-05-05 00:48:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean supports(GBDevice device) {
|
|
|
|
return getDeviceType().equals(device.getType());
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public DeviceType getDeviceType() {
|
|
|
|
return DeviceType.PEBBLE;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Class<? extends Activity> getPairingActivity() {
|
2015-05-10 16:27:31 +02:00
|
|
|
return null;
|
2015-05-05 00:48:02 +02:00
|
|
|
}
|
|
|
|
}
|