mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 14:29:41 +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/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({
|
||||||
|
@ -70,7 +70,7 @@ class _BookingPageState extends State<BookingPage> {
|
|||||||
remoteService: RemoteCalendarService(
|
remoteService: RemoteCalendarService(
|
||||||
HTTPService(),
|
HTTPService(),
|
||||||
),
|
),
|
||||||
memoryService: MemoryBookableSpaceService(),
|
memoryService: MemoryCalendarService(),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user