mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
Add properties to determine when the parking repository should log data
This commit is contained in:
@@ -7,7 +7,11 @@ import { HistoricalParkingAverageQueryResult } from "./ParkingGetterRepository";
|
|||||||
|
|
||||||
type ParkingStructureID = string;
|
type ParkingStructureID = string;
|
||||||
|
|
||||||
|
export const PARKING_LOGGING_INTERVAL_MS = 60000;
|
||||||
|
|
||||||
export class InMemoryParkingRepository implements ParkingGetterSetterRepository {
|
export class InMemoryParkingRepository implements ParkingGetterSetterRepository {
|
||||||
|
private dataLastAdded: Map<ParkingStructureID, Date> = new Map();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private structures: Map<ParkingStructureID, IParkingStructure> = new Map(),
|
private structures: Map<ParkingStructureID, IParkingStructure> = new Map(),
|
||||||
private historicalData: Map<ParkingStructureID, IParkingStructureTimestampRecord[]> = new Map(),
|
private historicalData: Map<ParkingStructureID, IParkingStructureTimestampRecord[]> = new Map(),
|
||||||
|
|||||||
Reference in New Issue
Block a user