mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
rename files for consistency
This commit is contained in:
@@ -49,12 +49,12 @@ export interface IOrderedStop {
|
||||
}
|
||||
|
||||
/**
|
||||
* Repository interface for data derived from Passio API.
|
||||
* GetterRepository interface for data derived from Passio API.
|
||||
* The repository is not designed to have write locks in place.
|
||||
* Objects passed from/to the repository should be treated
|
||||
* as disposable.
|
||||
*/
|
||||
export interface Repository {
|
||||
export interface GetterSetterRepository {
|
||||
// Getter methods
|
||||
|
||||
getSystems(): Promise<ISystem[]>;
|
||||
@@ -1,11 +1,11 @@
|
||||
import { IEntityWithId, IEta, IOrderedStop, IRoute, IShuttle, IStop, ISystem, Repository } from "./repository";
|
||||
import { IEntityWithId, IEta, IOrderedStop, IRoute, IShuttle, IStop, ISystem, GetterSetterRepository } from "./GetterSetterRepository";
|
||||
|
||||
/**
|
||||
* An unoptimized in memory repository.
|
||||
* (I would optimize it with actual data structures, but I'm
|
||||
* switching to another data store later anyways)
|
||||
*/
|
||||
export class UnoptimizedInMemoryRepository implements Repository {
|
||||
export class UnoptimizedInMemoryRepository implements GetterSetterRepository {
|
||||
private systems: ISystem[] = [];
|
||||
private stops: IStop[] = [];
|
||||
private routes: IRoute[] = [];
|
||||
Reference in New Issue
Block a user