From 7876af9756f7da82266d6bf1b36731a6fdbf5b2a Mon Sep 17 00:00:00 2001 From: mohammad Date: Thu, 17 Jul 2025 12:46:07 +0300 Subject: [PATCH] Refactor memory service implementation: rename MemoryBookableSpaceService to MemoryCalendarService for clarity and consistency --- .../data/services/memory_bookable_space_service.dart | 4 ++-- .../booking_system/presentation/view/booking_page.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/access_management/booking_system/data/services/memory_bookable_space_service.dart b/lib/pages/access_management/booking_system/data/services/memory_bookable_space_service.dart index 7aec2398..034480ec 100644 --- a/lib/pages/access_management/booking_system/data/services/memory_bookable_space_service.dart +++ b/lib/pages/access_management/booking_system/data/services/memory_bookable_space_service.dart @@ -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/services/calendar_system_service.dart'; -class MemoryBookableSpaceService implements CalendarSystemService { +class MemoryCalendarService implements CalendarSystemService { final Map _eventsCache = {}; @override @@ -35,7 +35,7 @@ class MemoryBookableSpaceService implements CalendarSystemService { } class MemoryCalendarServiceWithRemoteFallback implements CalendarSystemService { - final MemoryBookableSpaceService memoryService; + final MemoryCalendarService memoryService; final RemoteCalendarService remoteService; MemoryCalendarServiceWithRemoteFallback({ diff --git a/lib/pages/access_management/booking_system/presentation/view/booking_page.dart b/lib/pages/access_management/booking_system/presentation/view/booking_page.dart index b1e1ebfe..aac5c5b7 100644 --- a/lib/pages/access_management/booking_system/presentation/view/booking_page.dart +++ b/lib/pages/access_management/booking_system/presentation/view/booking_page.dart @@ -70,7 +70,7 @@ class _BookingPageState extends State { remoteService: RemoteCalendarService( HTTPService(), ), - memoryService: MemoryBookableSpaceService(), + memoryService: MemoryCalendarService(), ), )), ],