diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-01-28 23:45:38 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-01-28 23:45:38 +0100 |
commit | 3e619a735e63a1222e71060d9e65b354a156b158 (patch) | |
tree | 2f31cdc65d0d773874800c114530eb620bcca536 /app/src/main/java/io/trygvis/android/bt/BtCallback.java | |
parent | c4685214d8db34166213ffa373a16af1a99401a5 (diff) | |
download | io.trygvis.soilmoisture-android-3e619a735e63a1222e71060d9e65b354a156b158.tar.gz io.trygvis.soilmoisture-android-3e619a735e63a1222e71060d9e65b354a156b158.tar.bz2 io.trygvis.soilmoisture-android-3e619a735e63a1222e71060d9e65b354a156b158.tar.xz io.trygvis.soilmoisture-android-3e619a735e63a1222e71060d9e65b354a156b158.zip |
o Major refactoring on the BtPromise, mainly internal. Renaming BtPromise to BtSequence and BtSequencer.
Diffstat (limited to 'app/src/main/java/io/trygvis/android/bt/BtCallback.java')
-rw-r--r-- | app/src/main/java/io/trygvis/android/bt/BtCallback.java | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/app/src/main/java/io/trygvis/android/bt/BtCallback.java b/app/src/main/java/io/trygvis/android/bt/BtCallback.java deleted file mode 100644 index 0f7287f..0000000 --- a/app/src/main/java/io/trygvis/android/bt/BtCallback.java +++ /dev/null @@ -1,73 +0,0 @@ -package io.trygvis.android.bt; - -import android.bluetooth.BluetoothGatt; -import android.bluetooth.BluetoothGattCharacteristic; -import android.bluetooth.BluetoothGattDescriptor; - -import static io.trygvis.android.bt.BtPromise.PromiseResult; - -public class BtCallback { - public final boolean stopOnFailure; - public final String name; - - public BtCallback(boolean stopOnFailure, String name) { - this.stopOnFailure = stopOnFailure; - this.name = name; - } - - public PromiseResult onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { - throw new NotOverriddenException(); - } - - public PromiseResult onServicesDiscovered(BluetoothGatt gatt) { - throw new NotOverriddenException(); - } - - public PromiseResult onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) { - throw new NotOverriddenException(); - } - - public PromiseResult onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) { - throw new NotOverriddenException(); - } - - public PromiseResult onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) { - throw new NotOverriddenException(); - } - - public PromiseResult onDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor) { - throw new NotOverriddenException(); - } - - public PromiseResult onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor) { - throw new NotOverriddenException(); - } - - public PromiseResult onReliableWriteCompleted(BluetoothGatt gatt) { - throw new NotOverriddenException(); - } - - public PromiseResult onReadRemoteRssi(BluetoothGatt gatt, int rssi) { - throw new NotOverriddenException(); - } - - public PromiseResult onDirect(BluetoothGatt value) { - throw new NotOverriddenException(); - } - - public void onFailure() { - throw new NotOverriddenException(); - } - - public void onFinally(boolean success) { - throw new NotOverriddenException(); - } - - @Override - public String toString() { - return "BtCallback{" + - "name='" + name + '\'' + - ", stopOnFailure=" + stopOnFailure + - '}'; - } -} |