1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-29 22:53:18 +00:00
Files
jslib/src/models/data/attachmentData.ts
2019-04-13 21:20:09 -04:00

23 lines
550 B
TypeScript

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