mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 17:09:40 +00:00
Refactor memory service implementation: rename MemoryBookableSpaceService to MemoryCalendarService for clarity and consistency
This commit is contained in:
@ -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<String, CalendarEventsResponse> _eventsCache = {};
|
||||
|
||||
@override
|
||||
@ -35,7 +35,7 @@ class MemoryBookableSpaceService implements CalendarSystemService {
|
||||
}
|
||||
|
||||
class MemoryCalendarServiceWithRemoteFallback implements CalendarSystemService {
|
||||
final MemoryBookableSpaceService memoryService;
|
||||
final MemoryCalendarService memoryService;
|
||||
final RemoteCalendarService remoteService;
|
||||
|
||||
MemoryCalendarServiceWithRemoteFallback({
|
||||
|
@ -70,7 +70,7 @@ class _BookingPageState extends State<BookingPage> {
|
||||
remoteService: RemoteCalendarService(
|
||||
HTTPService(),
|
||||
),
|
||||
memoryService: MemoryBookableSpaceService(),
|
||||
memoryService: MemoryCalendarService(),
|
||||
),
|
||||
)),
|
||||
],
|
||||
|
Reference in New Issue
Block a user