1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

policy apis

This commit is contained in:
Kyle Spearrin
2020-01-15 11:24:00 -05:00
parent 844699f1a4
commit f66de2207c
4 changed files with 63 additions and 0 deletions

View 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');
}
}