mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
sync policies., set up policy service
This commit is contained in:
19
src/models/data/policyData.ts
Normal file
19
src/models/data/policyData.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { PolicyResponse } from '../response/policyResponse';
|
||||
|
||||
import { PolicyType } from '../../enums/policyType';
|
||||
|
||||
export class PolicyData {
|
||||
id: string;
|
||||
organizationId: string;
|
||||
type: PolicyType;
|
||||
data: any;
|
||||
enabled: boolean;
|
||||
|
||||
constructor(response: PolicyResponse) {
|
||||
this.id = response.id;
|
||||
this.organizationId = response.organizationId;
|
||||
this.type = response.type;
|
||||
this.data = response.data;
|
||||
this.enabled = response.enabled;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user