import { FolderData } from "../data/folderData" ; import { FolderView } from "../view/folderView" ; import Domain from "./domainBase" ; import { EncString } from "./encString" ; export class Folder extends Domain { id : string ; name : EncString ; revisionDate : Date ; constructor ( obj ? , alreadyEncrypted = false ) { super ( ) ; if ( obj == null ) { return ; } this . buildDomainModel ( this , obj , { id : null , name : null , } , alreadyEncrypted , [ "id" ] ) ; this . revisionDate = obj . revisionDate != null ? new Date ( obj . revisionDate ) : null ; } decrypt ( ) { return this . decryptObj ( new FolderView ( this ) , { name : null , } , null ) ; } }