mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
21 lines
614 B
TypeScript
21 lines
614 B
TypeScript
import { BaseResponse } from './baseResponse';
|
|
|
|
export class AttachmentResponse extends BaseResponse {
|
|
id: string;
|
|
url: string;
|
|
fileName: string;
|
|
key: string;
|
|
size: number;
|
|
sizeName: string;
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
this.id = this.getResponseProperty('Id');
|
|
this.url = this.getResponseProperty('Url');
|
|
this.fileName = this.getResponseProperty('FileName');
|
|
this.key = this.getResponseProperty('Key');
|
|
this.size = this.getResponseProperty('Size');
|
|
this.sizeName = this.getResponseProperty('SizeName');
|
|
}
|
|
}
|