import { ReadModel } from 'ts-eventsourcing/ReadModel/ReadModel'; import { Playhead } from '../../ValueObject/Playhead'; import { Identity } from 'ts-eventsourcing/ValueObject/Identity'; export class StateReadModel implements ReadModel { constructor(private readonly id: Id, private readonly state: State, private readonly playhead: Playhead) { } public getId(): Id { return this.id; } public getState(): State { return this.state; } public getPlayhead(): Playhead { return this.playhead; } }