1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-13 21:49:27 +01:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBDeviceIoThread.java

34 lines
687 B
Java
Raw Normal View History

package nodomain.freeyourgadget.gadgetbridge;
import android.content.Context;
public abstract class GBDeviceIoThread extends Thread {
protected final GBDevice gbDevice;
2015-04-13 11:22:03 +02:00
private final Context context;
public GBDeviceIoThread(GBDevice gbDevice, Context context) {
2015-04-13 11:22:03 +02:00
this.gbDevice = gbDevice;
this.context = context;
}
public Context getContext() {
2015-04-13 11:22:03 +02:00
return context;
}
public GBDevice getDevice() {
2015-04-13 11:22:03 +02:00
return gbDevice;
}
protected boolean connect(String btDeviceAddress) {
return false;
}
public void run() {
}
synchronized public void write(byte[] bytes) {
}
public void quit() {
}
}