aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/io/trygvis/android/bt/WrappingBluetoothGattCallback.java
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-01-12 22:47:57 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-01-16 22:48:11 +0100
commit5f880d3816526157c5d411896707b971af48212b (patch)
treea9315b7853c2bfc55944537d5890515ce0618746 /app/src/main/java/io/trygvis/android/bt/WrappingBluetoothGattCallback.java
parent17a1f7227c8c3872fce7bbcc2f5cd46540f9ac52 (diff)
downloadio.trygvis.soilmoisture-android-5f880d3816526157c5d411896707b971af48212b.tar.gz
io.trygvis.soilmoisture-android-5f880d3816526157c5d411896707b971af48212b.tar.bz2
io.trygvis.soilmoisture-android-5f880d3816526157c5d411896707b971af48212b.tar.xz
io.trygvis.soilmoisture-android-5f880d3816526157c5d411896707b971af48212b.zip
o Major refactoring of the BT promise.
Diffstat (limited to 'app/src/main/java/io/trygvis/android/bt/WrappingBluetoothGattCallback.java')
-rw-r--r--app/src/main/java/io/trygvis/android/bt/WrappingBluetoothGattCallback.java60
1 files changed, 0 insertions, 60 deletions
diff --git a/app/src/main/java/io/trygvis/android/bt/WrappingBluetoothGattCallback.java b/app/src/main/java/io/trygvis/android/bt/WrappingBluetoothGattCallback.java
deleted file mode 100644
index 8d790d1..0000000
--- a/app/src/main/java/io/trygvis/android/bt/WrappingBluetoothGattCallback.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package io.trygvis.android.bt;
-
-import android.bluetooth.BluetoothGatt;
-import android.bluetooth.BluetoothGattCallback;
-import android.bluetooth.BluetoothGattCharacteristic;
-import android.bluetooth.BluetoothGattDescriptor;
-
-class WrappingBluetoothGattCallback extends BluetoothGattCallback {
-
- private final BluetoothGattCallback wrapped;
-
- public WrappingBluetoothGattCallback(BluetoothGattCallback wrapped) {
- this.wrapped = wrapped;
- }
-
- @Override
- public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
- wrapped.onConnectionStateChange(gatt, status, newState);
- }
-
- @Override
- public void onServicesDiscovered(BluetoothGatt gatt, int status) {
- wrapped.onServicesDiscovered(gatt, status);
- }
-
- @Override
- public void onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {
- wrapped.onCharacteristicRead(gatt, characteristic, status);
- }
-
- @Override
- public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {
- wrapped.onCharacteristicWrite(gatt, characteristic, status);
- }
-
- @Override
- public void onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) {
- wrapped.onCharacteristicChanged(gatt, characteristic);
- }
-
- @Override
- public void onDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, int status) {
- wrapped.onDescriptorRead(gatt, descriptor, status);
- }
-
- @Override
- public void onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, int status) {
- wrapped.onDescriptorWrite(gatt, descriptor, status);
- }
-
- @Override
- public void onReliableWriteCompleted(BluetoothGatt gatt, int status) {
- wrapped.onReliableWriteCompleted(gatt, status);
- }
-
- @Override
- public void onReadRemoteRssi(BluetoothGatt gatt, int rssi, int status) {
- wrapped.onReadRemoteRssi(gatt, rssi, status);
- }
-}