10 changed files with 74 additions and 36 deletions
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
import { View } from './view'; |
||||
|
||||
import { Collection } from '../domain/collection'; |
||||
|
||||
export class CollectionView implements View { |
||||
id: string; |
||||
organizationId: string; |
||||
name: string; |
||||
|
||||
constructor(c?: Collection) { |
||||
if (!c) { |
||||
return; |
||||
} |
||||
|
||||
this.id = c.id; |
||||
this.organizationId = c.organizationId; |
||||
} |
||||
} |
||||
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
import { View } from './view'; |
||||
|
||||
import { Folder } from '../domain/folder'; |
||||
|
||||
export class FolderView implements View { |
||||
id: string; |
||||
name: string; |
||||
|
||||
constructor(f?: Folder) { |
||||
if (!f) { |
||||
return; |
||||
} |
||||
|
||||
this.id = f.id; |
||||
} |
||||
} |
||||
Loading…
Reference in new issue