2025-11-04 14:58:51 +07:00
|
|
|
part of '../printer.dart';
|
|
|
|
|
|
|
|
|
|
abstract class IPrinterRepository {
|
|
|
|
|
Future<Either<PrinterFailure, bool>> connectBluetooth(String macAddress);
|
|
|
|
|
Future<Either<PrinterFailure, bool>> disconectBluetooth();
|
|
|
|
|
Future<Either<PrinterFailure, bool>> isBluetoothEnabled();
|
|
|
|
|
Future<Either<PrinterFailure, List<BluetoothInfo>>>
|
|
|
|
|
getPairedBluetoothDevices();
|
2025-11-04 22:13:15 +07:00
|
|
|
Future<Either<PrinterFailure, Unit>> createPrinter(Printer printer);
|
|
|
|
|
Future<Either<PrinterFailure, Unit>> updatePrinter(Printer printer, int id);
|
|
|
|
|
Future<Either<PrinterFailure, Unit>> deletePrinter(int id);
|
|
|
|
|
Future<Either<PrinterFailure, Printer>> getPrinterByCode(String code);
|
2025-11-04 14:58:51 +07:00
|
|
|
}
|