mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
21 lines
500 B
TypeScript
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;
|
|
}
|
|
}
|