Add policy property to TakeoverResponse (#260)

This commit is contained in:
Thomas Rittson 2021-02-09 06:31:41 +10:00 committed by GitHub
parent 2730e04a05
commit 58e6f24d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1,8 +1,10 @@
import { EmergencyAccessStatusType } from '../../enums/emergencyAccessStatusType';
import { EmergencyAccessType } from '../../enums/emergencyAccessType';
import { KdfType } from '../../enums/kdfType';
import { BaseResponse } from './baseResponse';
import { CipherResponse } from './cipherResponse';
import { PolicyResponse } from './policyResponse';
export class EmergencyAccessGranteeDetailsResponse extends BaseResponse {
id: string;
@ -54,6 +56,7 @@ export class EmergencyAccessTakeoverResponse extends BaseResponse {
keyEncrypted: string;
kdf: KdfType;
kdfIterations: number;
policy: PolicyResponse[];
constructor(response: any) {
super(response);
@ -61,6 +64,7 @@ export class EmergencyAccessTakeoverResponse extends BaseResponse {
this.keyEncrypted = this.getResponseProperty('KeyEncrypted');
this.kdf = this.getResponseProperty('Kdf');
this.kdfIterations = this.getResponseProperty('KdfIterations');
this.policy = this.getResponseProperty('policy');
}
}