mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
Add stub for in-memory external source ETA repository
This commit is contained in:
@@ -0,0 +1,40 @@
|
|||||||
|
import { EventEmitter } from "stream";
|
||||||
|
import { IEta } from "../../../entities/ShuttleRepositoryEntities";
|
||||||
|
import { ETARepositoryEventName, ETARepositoryEventListener } from "./ETAGetterRepository";
|
||||||
|
import { ExternalSourceETARepository } from "./ExternalSourceETARepository";
|
||||||
|
|
||||||
|
export class InMemoryExternalSourceETARepository extends EventEmitter 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.");
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user