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

  1. import { Statistics } from '~/domain/models/statistics/statistics'
  2. export class StatisticsDTO {
  3. label: object;
  4. user: object;
  5. progress: object;
  6. annotatorProgress: object;
  7. approverProgress: object;
  8. adminProgress: object;
  9. constructor(item: Statistics, labelText: string, userText: string, progressLabels: string[]) {
  10. this.label = item.labelStats(labelText);
  11. this.user = item.userStats(userText);
  12. this.progress = item.progress(progressLabels);
  13. this.annotatorProgress = item.annotatorProgress(progressLabels);
  14. this.approverProgress = item.approverProgress(progressLabels);
  15. this.adminProgress = item.adminProgress(progressLabels);
  16. }
  17. }