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 { + } +}