Files
gridpilot.gg/apps/website/lib/view-models/RecordPageViewOutputViewModel.ts
2026-01-12 01:01:49 +01:00

19 lines
510 B
TypeScript

import type { RecordPageViewOutputDTO } from '@/lib/types/generated/RecordPageViewOutputDTO';
/**
* Record page view output view model
* Represents the result of recording a page view for UI consumption
*/
export class RecordPageViewOutputViewModel {
pageViewId: string;
constructor(dto: RecordPageViewOutputDTO) {
this.pageViewId = dto.pageViewId;
}
/** UI-specific: Formatted page view ID for display */
get displayPageViewId(): string {
return `Page View: ${this.pageViewId}`;
}
}