Refactor booking system: replace DebouncedBookingSystemService with DebouncedBookableSpacesService and streamline search handling

This commit is contained in:
mohammad
2025-07-10 12:10:28 +03:00
parent bfd6b5c3a0
commit 885ef61114
2 changed files with 3 additions and 9 deletions

View File

@ -3,14 +3,14 @@ import 'package:syncrow_web/pages/access_management/booking_system/domain/load_b
import 'package:syncrow_web/pages/access_management/booking_system/domain/models/paginated_bookable_spaces.dart';
import 'package:syncrow_web/pages/access_management/booking_system/domain/services/bookable_system_service.dart';
class DebouncedBookingSystemService implements BookableSystemService {
class DebouncedBookableSpacesService implements BookableSystemService {
final BookableSystemService _inner;
final Duration debounceDuration;
Timer? _debounceTimer;
Completer<PaginatedBookableSpaces>? _lastCompleter;
DebouncedBookingSystemService(
DebouncedBookableSpacesService(
this._inner, {
this.debounceDuration = const Duration(milliseconds: 500),
});