2018-02-19 19:07:19 +01:00
|
|
|
import { Folder } from "../domain/folder";
|
2018-10-25 18:09:22 +02:00
|
|
|
import { ITreeNodeObject } from "../domain/treeNode";
|
2018-01-25 20:57:42 +01:00
|
|
|
|
2022-02-22 15:39:11 +01:00
|
|
|
import { View } from "./view";
|
|
|
|
|
2018-10-25 18:09:22 +02:00
|
|
|
export class FolderView implements View, ITreeNodeObject {
|
2018-01-29 23:59:57 +01:00
|
|
|
id: string = null;
|
2019-01-25 15:30:21 +01:00
|
|
|
name: string = null;
|
|
|
|
revisionDate: Date = null;
|
2018-01-25 20:57:42 +01:00
|
|
|
|
|
|
|
constructor(f?: Folder) {
|
|
|
|
if (!f) {
|
|
|
|
return;
|
|
|
|
}
|
2021-12-16 13:36:21 +01:00
|
|
|
|
2018-01-25 20:57:42 +01:00
|
|
|
this.id = f.id;
|
2018-08-20 22:20:51 +02:00
|
|
|
this.revisionDate = f.revisionDate;
|
2021-12-16 13:36:21 +01:00
|
|
|
}
|
2018-01-25 20:57:42 +01:00
|
|
|
}
|