Refactor memory service implementation: rename MemoryBookableSpaceService to MemoryCalendarService for clarity and consistency

This commit is contained in:
mohammad
2025-07-17 12:46:07 +03:00
parent fe2f4a872b
commit 7876af9756
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import 'package:syncrow_web/pages/access_management/booking_system/domain/LoadEv
import 'package:syncrow_web/pages/access_management/booking_system/domain/models/calendar_event_booking.dart'; import 'package:syncrow_web/pages/access_management/booking_system/domain/models/calendar_event_booking.dart';
import 'package:syncrow_web/pages/access_management/booking_system/domain/services/calendar_system_service.dart'; import 'package:syncrow_web/pages/access_management/booking_system/domain/services/calendar_system_service.dart';
class MemoryBookableSpaceService implements CalendarSystemService { class MemoryCalendarService implements CalendarSystemService {
final Map<String, CalendarEventsResponse> _eventsCache = {}; final Map<String, CalendarEventsResponse> _eventsCache = {};
@override @override
@ -35,7 +35,7 @@ class MemoryBookableSpaceService implements CalendarSystemService {
} }
class MemoryCalendarServiceWithRemoteFallback implements CalendarSystemService { class MemoryCalendarServiceWithRemoteFallback implements CalendarSystemService {
final MemoryBookableSpaceService memoryService; final MemoryCalendarService memoryService;
final RemoteCalendarService remoteService; final RemoteCalendarService remoteService;
MemoryCalendarServiceWithRemoteFallback({ MemoryCalendarServiceWithRemoteFallback({

View File

@ -70,7 +70,7 @@ class _BookingPageState extends State<BookingPage> {
remoteService: RemoteCalendarService( remoteService: RemoteCalendarService(
HTTPService(), HTTPService(),
), ),
memoryService: MemoryBookableSpaceService(), memoryService: MemoryCalendarService(),
), ),
)), )),
], ],