1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

refactor req/res models

This commit is contained in:
Kyle Spearrin
2018-05-15 12:18:47 -04:00
parent 1d3ed93bff
commit 07cc64c0b8
25 changed files with 363 additions and 229 deletions

18
src/models/folder.ts Normal file
View File

@@ -0,0 +1,18 @@
import { FolderView } from 'jslib/models/view/folderView';
export class Folder {
static toView(req: Folder, view = new FolderView()) {
view.name = req.name;
return view;
}
name: string;
constructor(o?: FolderView) {
if (o == null) {
return;
}
this.name = o.name;
}
}