mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
view model types
This commit is contained in:
18
src/models/view/attachmentView.ts
Normal file
18
src/models/view/attachmentView.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user