view data fixes
This commit is contained in:
@@ -1,18 +1,13 @@
|
||||
import type { RecordEngagementOutputDTO } from '@/lib/types/generated/RecordEngagementOutputDTO';
|
||||
|
||||
/**
|
||||
* Record engagement output view model
|
||||
* Represents the result of recording an engagement event for UI consumption
|
||||
*/
|
||||
import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
|
||||
export class RecordEngagementOutputViewModel extends ViewModel {
|
||||
eventId: string;
|
||||
engagementWeight: number;
|
||||
|
||||
constructor(dto: RecordEngagementOutputDTO) {
|
||||
this.eventId = dto.eventId;
|
||||
this.engagementWeight = dto.engagementWeight;
|
||||
constructor(eventId: string, engagementWeight: number) {
|
||||
super();
|
||||
this.eventId = eventId;
|
||||
this.engagementWeight = engagementWeight;
|
||||
}
|
||||
|
||||
/** UI-specific: Formatted event ID for display */
|
||||
|
||||
Reference in New Issue
Block a user