From 5f880d3816526157c5d411896707b971af48212b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 12 Jan 2015 22:47:57 +0100 Subject: o Major refactoring of the BT promise. --- .../android/bt/WrappingBluetoothGattCallback.java | 60 ---------------------- 1 file changed, 60 deletions(-) delete mode 100644 app/src/main/java/io/trygvis/android/bt/WrappingBluetoothGattCallback.java (limited to 'app/src/main/java/io/trygvis/android/bt/WrappingBluetoothGattCallback.java') 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); - } -} -- cgit v1.2.3