1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-08 11:33:15 +00:00
Files
jslib/src/models/view/attachmentView.ts
2018-05-17 13:25:03 -04:00

23 lines
431 B
TypeScript

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) {
if (!a) {
return;
}
this.id = a.id;
this.url = a.url;
this.size = a.size;
this.sizeName = a.sizeName;
}
}