You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
672 B

import { Statistics } from '~/domain/models/statistics/statistics'
export class StatisticsDTO {
label: object;
user: object;
progress: object;
annotatorProgress: object;
approverProgress: object;
adminProgress: object;
constructor(item: Statistics, labelText: string, userText: string, progressLabels: string[]) {
this.label = item.labelStats(labelText);
this.user = item.userStats(userText);
this.progress = item.progress(progressLabels);
this.annotatorProgress = item.annotatorProgress(progressLabels);
this.approverProgress = item.approverProgress(progressLabels);
this.adminProgress = item.adminProgress(progressLabels);
}
}