aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/io/trygvis/android/bt/BtCallback.java
diff options
context:
space:
mode:
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.java73
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 +
- '}';
- }
-}