view models
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { RecordPageViewOutputDTO } from '../types/generated';
|
||||
|
||||
/**
|
||||
* 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}`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user