From 1acd12d1135a1ec2261db2f9ff05b88ebaa0ba25 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Mon, 31 Mar 2025 19:30:42 -0700 Subject: [PATCH] add stub methods for redis notification repository --- .../RedisNotificationRepository.ts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/repositories/RedisNotificationRepository.ts diff --git a/src/repositories/RedisNotificationRepository.ts b/src/repositories/RedisNotificationRepository.ts new file mode 100644 index 0000000..ad31307 --- /dev/null +++ b/src/repositories/RedisNotificationRepository.ts @@ -0,0 +1,33 @@ +import { + Listener, + NotificationLookupArguments, + NotificationRepository, + ScheduledNotification +} from "./NotificationRepository"; + +class RedisNotificationRepository implements NotificationRepository { + addOrUpdateNotification(notification: ScheduledNotification): Promise { + return Promise.resolve(undefined); + } + + public async deleteNotificationIfExists(lookupArguments: NotificationLookupArguments): Promise { + } + + public async getAllNotificationsForShuttleAndStopId(shuttleId: string, stopId: string): Promise { + return []; + } + + public async getSecondsThresholdForNotificationIfExists(lookupArguments: NotificationLookupArguments): Promise { + return null; + } + + public async isNotificationScheduled(lookupArguments: NotificationLookupArguments): Promise { + return false; + } + + subscribeToNotificationChanges(listener: Listener): void { + } + + unsubscribeFromNotificationChanges(listener: Listener): void { + } +}