main
1import 'package:blood_pressure_app/features/bluetooth/backend/bluetooth_utils.dart';
2
3/// Current state of bluetooth adapter/sensor
4enum BluetoothAdapterState {
5 /// Use of bluetooth adapter not authorized
6 unauthorized,
7 /// Use of bluetooth adapter not possible, f.e. because there is none
8 unfeasible,
9 /// Use of bluetooth adapter disabled
10 disabled,
11 /// Use of bluetooth adapter unknown
12 initial,
13 /// Bluetooth adapter ready to be used
14 ready;
15}
16
17/// Util to parse backend adapter states to [BluetoothAdapterState]
18abstract class BluetoothAdapterStateParser<BackendState> extends StreamDataParserCached<BackendState, BluetoothAdapterState> {
19 @override
20 BluetoothAdapterState get initialState => BluetoothAdapterState.initial;
21}