Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Deep parse models (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
MGibson1 committed Apr 5, 2021
1 parent bc7bd5b commit c395293
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/models/response/attachmentUploadDataResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ export class AttachmentUploadDataResponse extends BaseResponse {
super(response);
this.attachmentId = this.getResponseProperty('AttachmentId');
this.fileUploadType = this.getResponseProperty('FileUploadType');
this.cipherResponse = this.getResponseProperty('CipherResponse');
this.cipherMiniResponse = this.getResponseProperty('CipherMiniResponse');
const cipherResponse = this.getResponseProperty('CipherResponse');
const cipherMiniResponse = this.getResponseProperty('CipherMiniResponse');
this.cipherResponse = cipherResponse == null ? null : new CipherResponse(cipherResponse);
this.cipherMiniResponse = cipherMiniResponse == null ? null : new CipherResponse(cipherMiniResponse);
this.url = this.getResponseProperty('Url');
}

Expand Down
3 changes: 2 additions & 1 deletion src/models/response/sendFileUploadDataResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export class SendFileUploadDataResponse extends BaseResponse {
constructor(response: any) {
super(response);
this.fileUploadType = this.getResponseProperty('FileUploadType');
this.sendResponse = this.getResponseProperty('SendResponse');
const sendResponse = this.getResponseProperty('SendResponse');
this.sendResponse = sendResponse == null ? null : new SendResponse(sendResponse);
this.url = this.getResponseProperty('Url');
}
}

0 comments on commit c395293

Please sign in to comment.