mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add method stubs to remove data by id
This commit is contained in:
@@ -19,6 +19,13 @@ export interface GetterSetterRepository extends GetterRepository {
|
|||||||
addOrUpdateOrderedStop(orderedStop: IOrderedStop): Promise<void>;
|
addOrUpdateOrderedStop(orderedStop: IOrderedStop): Promise<void>;
|
||||||
addOrUpdateEta(eta: IEta): Promise<void>;
|
addOrUpdateEta(eta: IEta): Promise<void>;
|
||||||
|
|
||||||
|
removeSystem(systemId: string): Promise<void>;
|
||||||
|
removeRoute(routeId: string): Promise<void>;
|
||||||
|
removeShuttle(shuttleId: string): Promise<void>;
|
||||||
|
removeStop(stopId: string): Promise<void>;
|
||||||
|
removeOrderedStop(stopId: string, routeId: string): Promise<void>;
|
||||||
|
removeEta(shuttleId: string, stopId: string): Promise<void>;
|
||||||
|
|
||||||
clearSystemData(): Promise<void>;
|
clearSystemData(): Promise<void>;
|
||||||
clearRouteData(): Promise<void>;
|
clearRouteData(): Promise<void>;
|
||||||
clearShuttleData(): Promise<void>;
|
clearShuttleData(): Promise<void>;
|
||||||
|
|||||||
@@ -148,6 +148,24 @@ export class UnoptimizedInMemoryRepository implements GetterSetterRepository {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public async removeEta(shuttleId: string, stopId: string): Promise<void> {
|
||||||
|
}
|
||||||
|
|
||||||
|
public async removeOrderedStop(stopId: string, routeId: string): Promise<void> {
|
||||||
|
}
|
||||||
|
|
||||||
|
public async removeRoute(routeId: string): Promise<void> {
|
||||||
|
}
|
||||||
|
|
||||||
|
public async removeShuttle(shuttleId: string): Promise<void> {
|
||||||
|
}
|
||||||
|
|
||||||
|
public async removeStop(stopId: string): Promise<void> {
|
||||||
|
}
|
||||||
|
|
||||||
|
public async removeSystem(systemId: string): Promise<void> {
|
||||||
|
}
|
||||||
public async clearSystemData() {
|
public async clearSystemData() {
|
||||||
this.systems = [];
|
this.systems = [];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user