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.

26 lines
596 B

  1. export class ExampleItem {
  2. constructor(
  3. readonly id: number,
  4. readonly text: string,
  5. readonly meta: object,
  6. readonly annotationApprover: boolean | null,
  7. readonly commentCount: number,
  8. readonly fileUrl: string,
  9. readonly isConfirmed: boolean,
  10. readonly filename: string
  11. ) {}
  12. get url() {
  13. const l = this.fileUrl.indexOf('media/')
  14. return this.fileUrl.slice(l - 1)
  15. }
  16. }
  17. export class ExampleItemList {
  18. constructor(
  19. readonly count: number,
  20. readonly next: string | null,
  21. readonly prev: string | null,
  22. readonly items: ExampleItem[]
  23. ) {}
  24. }