mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
Add stubs for Redis implementations of both ETA repository variants
This commit is contained in:
@@ -0,0 +1,66 @@
|
|||||||
|
import { IEta } from "../../../entities/ShuttleRepositoryEntities";
|
||||||
|
import { ETARepositoryEventName, ETARepositoryEventListener } from "./ETAGetterRepository";
|
||||||
|
import { ExternalSourceETARepository } from "./ExternalSourceETARepository";
|
||||||
|
|
||||||
|
export class RedisExternalSourceETARepository implements ExternalSourceETARepository {
|
||||||
|
addOrUpdateEtaFromExternalSource(eta: IEta): Promise<void> {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
removeEtaIfExists(shuttleId: string, stopId: string): Promise<IEta | null> {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
on<T extends ETARepositoryEventName>(event: T, listener: ETARepositoryEventListener<T>): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
once<T extends ETARepositoryEventName>(event: T, listener: ETARepositoryEventListener<T>): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
off<T extends ETARepositoryEventName>(event: T, listener: ETARepositoryEventListener<T>): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
addListener<T extends ETARepositoryEventName>(event: T, listener: ETARepositoryEventListener<T>): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
removeListener<T extends ETARepositoryEventName>(event: T, listener: ETARepositoryEventListener<T>): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
getEtasForShuttleId(shuttleId: string): Promise<IEta[]> {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
getEtasForStopId(stopId: string): Promise<IEta[]> {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise<IEta | null> {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
removeAllListeners(eventName?: string | symbol | undefined): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
setMaxListeners(n: number): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
getMaxListeners(): number {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
listeners<K>(eventName: string | symbol): Function[] {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
rawListeners<K>(eventName: string | symbol): Function[] {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
emit<K>(eventName: string | symbol, ...args: any[]): boolean {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
listenerCount<K>(eventName: string | symbol, listener?: Function | undefined): number {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
eventNames(): (string | symbol)[] {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
import { IEta } from "../../../entities/ShuttleRepositoryEntities";
|
||||||
|
import { ETARepositoryEventName, ETARepositoryEventListener } from "./ETAGetterRepository";
|
||||||
|
import { SelfUpdatingETARepository } from "./SelfUpdatingETARepository";
|
||||||
|
|
||||||
|
export class RedisSelfUpdatingETARepository implements SelfUpdatingETARepository {
|
||||||
|
startListeningForUpdates(): void {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
on<T extends ETARepositoryEventName>(event: T, listener: ETARepositoryEventListener<T>): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
once<T extends ETARepositoryEventName>(event: T, listener: ETARepositoryEventListener<T>): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
off<T extends ETARepositoryEventName>(event: T, listener: ETARepositoryEventListener<T>): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
addListener<T extends ETARepositoryEventName>(event: T, listener: ETARepositoryEventListener<T>): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
removeListener<T extends ETARepositoryEventName>(event: T, listener: ETARepositoryEventListener<T>): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
getEtasForShuttleId(shuttleId: string): Promise<IEta[]> {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
getEtasForStopId(stopId: string): Promise<IEta[]> {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise<IEta | null> {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
removeAllListeners(eventName?: string | symbol | undefined): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
setMaxListeners(n: number): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
getMaxListeners(): number {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
listeners<K>(eventName: string | symbol): Function[] {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
rawListeners<K>(eventName: string | symbol): Function[] {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
emit<K>(eventName: string | symbol, ...args: any[]): boolean {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
listenerCount<K>(eventName: string | symbol, listener?: Function | undefined): number {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): this {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
eventNames(): (string | symbol)[] {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user