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
439 B

  1. import { CommentItem } from '~/domain/models/comment/comment'
  2. export class CommentReadDTO {
  3. id: number;
  4. user: number;
  5. username: string;
  6. documentText: string;
  7. text: string;
  8. createdAt: string;
  9. constructor(item: CommentItem) {
  10. this.id = item.id;
  11. this.user = item.user;
  12. this.username = item.username;
  13. this.documentText = item.documentText;
  14. this.text = item.text;
  15. this.createdAt = item.createdAt;
  16. }
  17. }