bitwarden-estensione-browser/src/models/view/attachmentView.ts

23 lines
431 B
TypeScript
Raw Normal View History

2018-01-24 17:33:15 +01:00
import { View } from './view';
import { Attachment } from '../domain/attachment';
2018-01-24 17:33:15 +01:00
export class AttachmentView implements View {
id: string;
url: string;
size: number;
sizeName: string;
fileName: string;
2018-05-17 19:25:03 +02:00
constructor(a?: Attachment) {
if (!a) {
return;
}
2018-01-24 17:33:15 +01:00
this.id = a.id;
this.url = a.url;
this.size = a.size;
this.sizeName = a.sizeName;
}
}