mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add stub methods for redis notification repository
This commit is contained in:
33
src/repositories/RedisNotificationRepository.ts
Normal file
33
src/repositories/RedisNotificationRepository.ts
Normal 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 {
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user