1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00
Files
browser/src/models/view/collectionView.ts
2018-06-11 14:32:35 -04:00

21 lines
415 B
TypeScript

import { View } from './view';
import { Collection } from '../domain/collection';
export class CollectionView implements View {
id: string;
organizationId: string;
name: string;
readOnly: boolean;
constructor(c?: Collection) {
if (!c) {
return;
}
this.id = c.id;
this.organizationId = c.organizationId;
this.readOnly = c.readOnly;
}
}