rename files for consistency

This commit is contained in:
2025-01-06 20:46:09 -08:00
parent 588a2b18ad
commit fcf0f01715
8 changed files with 18 additions and 18 deletions

View File

@@ -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[]>;

View File

@@ -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[] = [];