1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

view model types

This commit is contained in:
Kyle Spearrin
2018-01-24 11:33:15 -05:00
parent 5557c5b638
commit 7e1c883f03
19 changed files with 299 additions and 118 deletions

View File

@@ -0,0 +1,18 @@
import { View } from './view';
import { Attachment } from '../domain/attachment';
export class AttachmentView implements View {
id: string;
url: string;
size: number;
sizeName: string;
fileName: string;
constructor(a: Attachment) {
this.id = a.id;
this.url = a.url;
this.size = a.size;
this.sizeName = a.sizeName;
}
}