mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
policy apis
This commit is contained in:
20
src/models/response/policyResponse.ts
Normal file
20
src/models/response/policyResponse.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { BaseResponse } from './baseResponse';
|
||||
|
||||
import { PolicyType } from '../../enums/policyType';
|
||||
|
||||
export class PolicyResponse extends BaseResponse {
|
||||
id: string;
|
||||
organizationId: string;
|
||||
type: PolicyType;
|
||||
data: any;
|
||||
enabled: boolean;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
this.id = this.getResponseProperty('Id');
|
||||
this.organizationId = this.getResponseProperty('OrganizationId');
|
||||
this.type = this.getResponseProperty('Type');
|
||||
this.data = this.getResponseProperty('Data');
|
||||
this.enabled = this.getResponseProperty('Enabled');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user