diff --git a/src/models/domain/sendAccess.ts b/src/models/domain/sendAccess.ts index 155f0c4fbc5..379cd9f0c75 100644 --- a/src/models/domain/sendAccess.ts +++ b/src/models/domain/sendAccess.ts @@ -16,6 +16,8 @@ export class SendAccess extends Domain { name: CipherString; file: SendFile; text: SendText; + expirationDate: Date; + creatorIdentifier: string; constructor(obj?: SendAccessResponse, alreadyEncrypted: boolean = false) { super(); @@ -26,7 +28,9 @@ export class SendAccess extends Domain { this.buildDomainModel(this, obj, { id: null, name: null, - }, alreadyEncrypted, ['id']); + expirationDate: null, + creatorIdentifier: null, + }, alreadyEncrypted, ['id', 'expirationDate', 'creatorIdentifier']); this.type = obj.type; diff --git a/src/models/response/sendAccessResponse.ts b/src/models/response/sendAccessResponse.ts index 89ae9aba9b5..ef4a57aadf6 100644 --- a/src/models/response/sendAccessResponse.ts +++ b/src/models/response/sendAccessResponse.ts @@ -11,6 +11,8 @@ export class SendAccessResponse extends BaseResponse { name: string; file: SendFileApi; text: SendTextApi; + expirationDate: Date; + creatorIdentifier: string; constructor(response: any) { super(response); @@ -27,5 +29,8 @@ export class SendAccessResponse extends BaseResponse { if (file != null) { this.file = new SendFileApi(file); } + + this.expirationDate = this.getResponseProperty('ExpirationDate'); + this.creatorIdentifier = this.getResponseProperty('CreatorIdentifier'); } } diff --git a/src/models/view/sendAccessView.ts b/src/models/view/sendAccessView.ts index 03bc67f10c4..2aec827e3c8 100644 --- a/src/models/view/sendAccessView.ts +++ b/src/models/view/sendAccessView.ts @@ -12,6 +12,8 @@ export class SendAccessView implements View { type: SendType = null; text = new SendTextView(); file = new SendFileView(); + expirationDate: Date = null; + creatorIdentifier: string = null; constructor(s?: SendAccess) { if (!s) { @@ -20,5 +22,7 @@ export class SendAccessView implements View { this.id = s.id; this.type = s.type; + this.expirationDate = s.expirationDate; + this.creatorIdentifier = s.creatorIdentifier; } }