23 lines
550 B
TypeScript
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;
|
|
}
|
|
}
|