// Path: sdk/src/main/java/com/punchthrough/bean/sdk/message/Callback.java
// public interface Callback<T> {
//     /**
//      * Override this method to get results back from an asynchronous process.
//      *
//      * @param result The result passed back from the asynchronous process
//      */
//     public void onResult(T result);
// }


import android.bluetooth.BluetoothGattCharacteristic;
import android.util.Log;
import com.punchthrough.bean.sdk.message.Callback;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
package com.punchthrough.bean.sdk.internal.ble;




public class SendBuffer {

    private static final String TAG = "SendBuffer";
    public static final int SEND_INTERVAL = 5;  // ms

    private final GattClient gattClient;
    private final BluetoothGattCharacteristic charc;
    private final List<byte[]> packets = new ArrayList<>();
    private final List<Integer> ids = new ArrayList<>();
// Path: sdk/src/main/java/com/punchthrough/bean/sdk/message/Callback.java
// public interface Callback<T> {
//     /**
//      * Override this method to get results back from an asynchronous process.
//      *
//      * @param result The result passed back from the asynchronous process
//      */
//     public void onResult(T result);
// }


// Path: sdk/src/main/java/com/punchthrough/bean/sdk/internal/ble/SendBuffer.java
import android.bluetooth.BluetoothGattCharacteristic;
import android.util.Log;
import com.punchthrough.bean.sdk.message.Callback;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;

package com.punchthrough.bean.sdk.internal.ble;




public class SendBuffer {

    private static final String TAG = "SendBuffer";
    public static final int SEND_INTERVAL = 5;  // ms

    private final GattClient gattClient;
    private final BluetoothGattCharacteristic charc;
    private final List<byte[]> packets = new ArrayList<>();
    private final List<Integer> ids = new ArrayList<>();
    private final Callback<Integer> onPacketSent;