1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00
Files
browser/src/models/data/attachmentData.ts
2018-06-12 11:45:02 -04:00

21 lines
500 B
TypeScript

import { AttachmentResponse } from '../response/attachmentResponse';
export class AttachmentData {
id: string;
url: string;
fileName: string;
size: number;
sizeName: string;
constructor(response?: AttachmentResponse) {
if (response == null) {
return;
}
this.id = response.id;
this.url = response.url;
this.fileName = response.fileName;
this.size = response.size;
this.sizeName = response.sizeName;
}
}