bitwarden-estensione-browser/src/models/view/collectionView.ts

22 lines
514 B
TypeScript
Raw Normal View History

2018-01-25 20:57:42 +01:00
import { View } from './view';
import { Collection } from '../domain/collection';
import { ITreeNodeObject } from '../domain/treeNode';
2018-01-25 20:57:42 +01:00
export class CollectionView implements View, ITreeNodeObject {
2019-01-25 15:30:21 +01:00
id: string = null;
organizationId: string = null;
name: string = null;
readOnly: boolean = null;
2018-01-25 20:57:42 +01:00
constructor(c?: Collection) {
if (!c) {
return;
}
this.id = c.id;
this.organizationId = c.organizationId;
this.readOnly = c.readOnly;
2018-01-25 20:57:42 +01:00
}
}