1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-18 16:33:13 +00:00
Files
jslib/common/src/models/response/twoFactorYubiKeyResponse.ts
Oscar Hinton 1016bbfb9e Split jslib into multiple modules (#363)
* Split jslib into multiple modules
2021-06-03 18:58:57 +02:00

23 lines
688 B
TypeScript

import { BaseResponse } from './baseResponse';
export class TwoFactorYubiKeyResponse extends BaseResponse {
enabled: boolean;
key1: string;
key2: string;
key3: string;
key4: string;
key5: string;
nfc: boolean;
constructor(response: any) {
super(response);
this.enabled = this.getResponseProperty('Enabled');
this.key1 = this.getResponseProperty('Key1');
this.key2 = this.getResponseProperty('Key2');
this.key3 = this.getResponseProperty('Key3');
this.key4 = this.getResponseProperty('Key4');
this.key5 = this.getResponseProperty('Key5');
this.nfc = this.getResponseProperty('Nfc');
}
}