1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

move export models to jslib

This commit is contained in:
Kyle Spearrin
2018-12-17 10:29:37 -05:00
parent 27566c3fd5
commit 94f103c474
12 changed files with 458 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import { SecureNoteType } from '../../enums/secureNoteType';
import { SecureNoteView } from '../view/secureNoteView';
export class SecureNote {
static template(): SecureNote {
const req = new SecureNote();
req.type = SecureNoteType.Generic;
return req;
}
static toView(req: SecureNote, view = new SecureNoteView()) {
view.type = req.type;
return view;
}
type: SecureNoteType;
constructor(o?: SecureNoteView) {
if (o == null) {
return;
}
this.type = o.type;
}
}