mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 10:31:03 +01:00
32 lines
768 B
Java
32 lines
768 B
Java
|
package nodomain.freeyourgadget.gadgetbridge;
|
||
|
|
||
|
import android.bluetooth.BluetoothAdapter;
|
||
|
import android.content.Context;
|
||
|
|
||
|
public abstract class AbstractDeviceSupport implements DeviceSupport {
|
||
|
private GBDevice gbDevice;
|
||
|
private BluetoothAdapter btAdapter;
|
||
|
private Context context;
|
||
|
|
||
|
public void initialize(GBDevice gbDevice, BluetoothAdapter btAdapter, Context context) {
|
||
|
this.gbDevice = gbDevice;
|
||
|
this.btAdapter = btAdapter;
|
||
|
this.context = context;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public GBDevice getDevice() {
|
||
|
return gbDevice;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public BluetoothAdapter getBluetoothAdapter() {
|
||
|
return btAdapter;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Context getContext() {
|
||
|
return context;
|
||
|
}
|
||
|
}
|