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

21 lines
415 B
TypeScript
Raw Normal View History

2018-01-25 20:57:42 +01:00
import { View } from './view';
import { Collection } from '../domain/collection';
2018-01-25 20:57:42 +01:00
export class CollectionView implements View {
id: string;
organizationId: string;
name: string;
readOnly: boolean;
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
}
}