view data fixes
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
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
|
||||
*/
|
||||
import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
import type { RecordPageViewOutputViewData } from "../view-data/RecordPageViewOutputViewData";
|
||||
|
||||
export class RecordPageViewOutputViewModel extends ViewModel {
|
||||
pageViewId: string;
|
||||
|
||||
constructor(dto: RecordPageViewOutputDTO) {
|
||||
this.pageViewId = dto.pageViewId;
|
||||
constructor(data: RecordPageViewOutputViewData) {
|
||||
super();
|
||||
this.pageViewId = data.pageViewId;
|
||||
}
|
||||
|
||||
/** UI-specific: Formatted page view ID for display */
|
||||
|
||||
Reference in New Issue
Block a user