add stub methods for redis notification repository

This commit is contained in:
2025-03-31 19:30:42 -07:00
parent c59ccd7f1a
commit 1acd12d113

View File

@@ -0,0 +1,33 @@
import {
Listener,
NotificationLookupArguments,
NotificationRepository,
ScheduledNotification
} from "./NotificationRepository";
class RedisNotificationRepository implements NotificationRepository {
addOrUpdateNotification(notification: ScheduledNotification): Promise<void> {
return Promise.resolve(undefined);
}
public async deleteNotificationIfExists(lookupArguments: NotificationLookupArguments): Promise<void> {
}
public async getAllNotificationsForShuttleAndStopId(shuttleId: string, stopId: string): Promise<ScheduledNotification[]> {
return [];
}
public async getSecondsThresholdForNotificationIfExists(lookupArguments: NotificationLookupArguments): Promise<number | null> {
return null;
}
public async isNotificationScheduled(lookupArguments: NotificationLookupArguments): Promise<boolean> {
return false;
}
subscribeToNotificationChanges(listener: Listener): void {
}
unsubscribeFromNotificationChanges(listener: Listener): void {
}
}