2018-01-25 20:57:42 +01:00
|
|
|
import { View } from './view';
|
|
|
|
|
2018-02-19 19:07:19 +01:00
|
|
|
import { Collection } from '../domain/collection';
|
2018-10-25 18:09:22 +02:00
|
|
|
import { ITreeNodeObject } from '../domain/treeNode';
|
2018-01-25 20:57:42 +01:00
|
|
|
|
2018-10-25 18:09:22 +02:00
|
|
|
export class CollectionView implements View, ITreeNodeObject {
|
2018-01-25 20:57:42 +01:00
|
|
|
id: string;
|
|
|
|
organizationId: string;
|
|
|
|
name: string;
|
2018-06-11 20:32:35 +02:00
|
|
|
readOnly: boolean;
|
2018-01-25 20:57:42 +01:00
|
|
|
|
|
|
|
constructor(c?: Collection) {
|
|
|
|
if (!c) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.id = c.id;
|
|
|
|
this.organizationId = c.organizationId;
|
2018-06-11 20:32:35 +02:00
|
|
|
this.readOnly = c.readOnly;
|
2018-01-25 20:57:42 +01:00
|
|
|
}
|
|
|
|
}
|